相同的sql用sqlplus執行和用pl/sql執行的結果為什么不一樣?
pl/sql可以得出結果,sqlplus會報不存在的lob值。
select a.CI_ID,to_char(
(select wm_concat(decode(instr(a.stu_ids,b.stu_id),0,null,b.stu_name))
? from pm_stu b
? )
) STU_NAME?
from pm_ci a where a.ci_id is not null;
pl/sql可以得出結果,sqlplus會報不存在的lob值。
select a.CI_ID,to_char(
(select wm_concat(decode(instr(a.stu_ids,b.stu_id),0,null,b.stu_name))
? from pm_stu b
? )
) STU_NAME?
from pm_ci a where a.ci_id is not null;
2019-02-15
舉報
2019-03-03
字段是什么類型的?可能to_char和wm_concat同時用的問題。