当前位置:首页> 正文

sql 批量给一个字段字符结尾加上字符

sql 批量给一个字段字符结尾加上字符
update table(表名) set filename=concat(filename,'/');  
filename 字段名称 / 是给filename 这个结尾加上一个斜杠。
update [表名] set 字段名 = replace(字段名,'原本内容','想要替换成什么')  
 update test_tb set address=replace(address,'东','西') where id=2 把address 字段里面的 "东" 替换成 “西”  
update test_tb set titleurl=replace(titleurl,'html/','html')  
把address 字段里面的 "html/" 替换成 “html”
展开全文阅读

相关内容