SELECT CI_ID,WM_CONCAT(STU_NAME) STU_NAMES
FROM (SELECT CI_ID,STU_NAME FROM PM_CI,PM_STU
WHERE INSTR(STU_IDS,STU_ID)<>0) GROUP BY CI_ID
结果是正确的,可是出现了一个问题,STU_NAMES字段值显示(HUGECLOB),只有点开后面的省略号才能看到字符串值,求解答?
把STU_NAMES用to_char转一下,to_char(WM_CONCAT(STU_NAME) )。应该是oracle高版本得到的WM_CONCAT结果默认是CLOB类型,用to_char转一下就能看到值了