1、把字段filePath中所有类似 '/usr/local/Trolltech/%'的字符串都替换成   '/zzzzz/'

  update   EstDlpFileAttribute  set     filePath = replace(filePath,'/usr/local/Trolltech/', '/zzzzz/') where filePath like '/usr/local/Trolltech/%';

表: EstDlpFileAttribute  

字段名 : filePath 

替换函数   : replace

 

2、下面是把 fileAttrId = 319811的记录中字段filePath中的内容拼接上    '/zzzzz/abc.txt'  ,然后替换字段 filePath

update EstDlpFileAttribute set filePath = filePath || '/zzzzz/abc.txt' where fileAttrId = 319811;

posted on 2022-11-08 10:44  北京开发  阅读(287)  评论(0)    收藏  举报