oracle高手进为什么这样差不出值来,数据库中是有值的select wm_concat(decode(a,'01','aa',a)) from (select regexp_substr(t.gwys_1,'[^,]+',1,rownum) a,t.pk_dyccqsfjlb_id id from mchis.jdh_mcheck_first t connect by rownum

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 08:46:55
oracle高手进为什么这样差不出值来,数据库中是有值的selectwm_concat(decode(a,''01'',''aa'',a))from(selectregexp_substr(t.gwys_1,

oracle高手进为什么这样差不出值来,数据库中是有值的select wm_concat(decode(a,'01','aa',a)) from (select regexp_substr(t.gwys_1,'[^,]+',1,rownum) a,t.pk_dyccqsfjlb_id id from mchis.jdh_mcheck_first t connect by rownum
oracle高手进
为什么这样差不出值来,数据库中是有值的
select wm_concat(decode(a,'01','aa',a)) from (select regexp_substr(t.gwys_1,'[^,]+',1,rownum) a,t.pk_dyccqsfjlb_id id from mchis.jdh_mcheck_first t connect by rownum

oracle高手进为什么这样差不出值来,数据库中是有值的select wm_concat(decode(a,'01','aa',a)) from (select regexp_substr(t.gwys_1,'[^,]+',1,rownum) a,t.pk_dyccqsfjlb_id id from mchis.jdh_mcheck_first t connect by rownum
只是替换01变为aa,直接用replace不就行了完了:
select REPLACE(t.gwys_1,'01','aa') from mchis.jdh_mcheck_first t ;
你要这个语句到底干什么用?