随笔 - 170  文章 - 0  评论 - 16  阅读 - 35908 

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   北京开发  阅读(260)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示