今天查询一个字段,使用了拼接,然后查出来就显示clob:
代码如下:
SELECT LOAD_DATE, CINO, WM_CONCAT(CITYP) AS CITYP
FROM ODS.ZN_CUSTCITYP
GROUP BY CINO,LOAD_DATE
显示如图:
解决办法:
SELECT LOAD_DATE, CINO, DBMS_LOB.SUBSTR(WM_CONCAT(CITYP)) AS CITYP
FROM ODS.ZN_CUSTCITYP
GROUP BY CINO,LOAD_DATE
这样就能显示出结果了: