如何将字符串利用正则表达式转换为列值

select
null as MARK_ID,
t2.table_name as TABLE_NAME,
remark.field as FIELD_NAME,
1 as MARK_TYPE,
t2.table_name as CLASS_NAME,
123 as CLASS_ID,
'重要数据缺失' as REMARK1,
null as REMARK2,
null as STATE,
null as CREATOR,
null as CREATE_TIME,
null as INVALID_PERSON,
null as INVALID_TIME,
null as LAST_MODIFY_PERSON,
null as LAST_MODIFY_TIME,
t2.field_show_name||'缺失' as REMARK,
null as OPERATE_TYPE
from (with Field as (select 'FLOORCOUNT/BLDONFLOCOUNT/BLDUNDFLOCOUNT/ROOMCOUNT/BLDFINISHDATE/BLDSTATE/BLDDESC/PROSTATE/' Field from dual)
select regexp_substr(Field,'[^/]+',1,rownum) Field from Field
connect by rownum<=length(regexp_replace(Field,'[^/]+'))) remark
left join sys_enumeration t2 on t2.field_name=remark.Field
where t2.table_name='BUILDING';

--select * from sys_marks t;

转载于:https://www.cnblogs.com/jxgzCHforever/p/8044523.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值