我想在oracle表中可用的多个字符串中使用oracle查询进行自动替换,方法是在第一次出现的“select”和第一次出现的“from”之间更改字段分隔符“,”,而不会影响函数:
按原样:
with result as (select column_a, column_b, count(*) from (select column1, column2, column3 ..
select column1, count(distinct coalesce(column2, cast('zz' as nvarchar2(2)))) as value from ...
select count(*) from (select ....
字符集
预期:
with result as (select column_a || column_b || count(*) from (select column1, column2, column3 ..
select column1 || count(distinct coalesce(column2, cast('zz' as nvarchar2(2)))) as value from ...
select count(*) from (select column1, column2, column3 ..
型
1条答案
按热度按时间ubof19bj1#
甚至不用
replace_regexp
,只用instr
、substr
和replace
怎么样字符集
下面是结果,稍后您所需要的就是编写一个适当的
update
语句。型