1、replace(’’,’’,’’) 和 ||(拼接功能) ,此函数也试用于mysql
将某个char字段进行批量更新,实现效果为,
原char字段列值为‘src=char/http://www.baidu.com’
修改为 :id=00001&src=char/http://www.baidu.com
update tablename t set char= replace(t.char , ‘src’ , ‘id=’||t.id||chr(38)||‘src’);
oracle-sql函数使用
最新推荐文章于 2023-11-27 22:42:01 发布