0

我正在尝试从用于填充 xml 的列中删除方形字符 问题是 xml 没有正确创建,并且为我创建了很多工作。因此,作为每天的脚本作业,我将尝试运行 sql 来更新值以删除有问题的字符。

到目前为止我有

select * from (select dump(narration) as dn,narration from ar_journal)
where dn like '%27%'
and dn not like '%=27:%';

这找到了有问题的东西,但我想知道是否可以使用替换函数调用 dn?

请注意,dn 是列旁白的转储。

结果如下 DN Typ=1 Len=200: 96,27,97,110,115,102,101,114,32,102,114,111,109,32,67,117,115,116,111,109,101,114,32,32,32,32,32,75,42,32,323, ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 ,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32

旁白 CharWasHere '从客户 900转移
值是不可预测的,但字符始终相同,

任何帮助将不胜感激。

干杯,

4

1 回答 1

0
select replace(narration, chr(27)) from table
于 2013-03-27T12:45:22.373 回答