ORACLE统计一个字符串中的逗号

参考论坛:http://rj0801zxh.iteye.com/admin/blogs/new

 

SELECT LENGTH(T1.INVESTIGATOR_ID) -
       LENGTH(REPLACE(T1.INVESTIGATOR_ID, ',', '')) LEN ,T1.INVESTIGATOR_ID
  FROM T_PC_EVIDENCE_TICKET T1;

你可能感兴趣的:(Oracle)