17,086
社区成员
发帖
与我相关
我的任务
分享
with tmp as
(
select 'abc|def|ghi' a from dual union all
select '123|456|789' from dual
)
select regexp_replace(a,'(\w+)\|(\w+)\|(\w+)','\1'),
regexp_replace(a,'(\w+)\|(\w+)\|(\w+)','\2'),
regexp_replace(a,'(\w+)\|(\w+)\|(\w+)','\3')
from tmp