sqlite3 replace函数服务器端替换一个字段中数据的例子 ;拼接字段字符串
2024-09-08 19:42:14
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;
最新文章
- C#语言基础——集合(ArrayList集合)
- TFS 2015 Update 2功能探索
- WebForm组合查询
- hidden(隐藏域)
- iOS本地数据存取
- FlowLayoutPanel autowrapping doesn't work with autosize
- ashx一般处理程序文件用处
- app.listen(3000)与app是不一样的
- 【Java数据结构】Java数据结构之链表反转
- 1077. [NOIP2010冲刺六] 数列游戏
- Mego(06) - 关系数据库建模
- hdu 5919 主席树(区间不同数的个数 + 区间第k大)
- 【Android】setXfermode属性
- Guitar Pro 添加装饰音
- split根据一个元素分割语句
- PAT A1127 ZigZagging on a Tree (30 分)——二叉树,建树,层序遍历
- Linux学习笔记14—文件的压缩与打包
- IntelliJ IDEA 2017版 使用笔记(十一) Debug操作:IDEA 快捷键
- 异步图片下载引擎(升级版——ExecutorService+handler)
- MySQL--修改普通表为自增表