今天查询一个字段,使用了拼接,然后查出来就显示clob:
代码如下:
SELECT LOAD_DATE, CINO, WM_CONCAT(CITYP) AS CITYP
FROM ODS.ZN_CUSTCITYP
GROUP BY CINO,LOAD_DATE
显示如图:
解决办法:
select t.普通字段, dbms_lob.substr(t.clob的字段名) as shop_info_list
FROM 表名 t
WHERE t.字段名 = 条件;
SELECT LOAD_DATE, CINO, DBMS_LOB.SUBSTR(WM_CONCAT(CITYP)) AS CITYP
FROM ODS.ZN_CUSTCITYP
GROUP BY CINO,LOAD_DATE
这样就能显示出结果了: