将address字段里的 “东” 替换为 “西” ,如下
update test_tb set address=replace(address,'东','西') where id=2

总结:对字段中局部字符串做更新替换。
举例:
update jtbc_about set n_category=replace(n_category,'1','9')
我想有那么一段时光,可以在面朝大海的房车里煮上一杯咖啡,看看曾写过的代码
将address字段里的 “东” 替换为 “西” ,如下
update test_tb set address=replace(address,'东','西') where id=2
总结:对字段中局部字符串做更新替换。
举例:
update jtbc_about set n_category=replace(n_category,'1','9')
我想有那么一段时光,可以在面朝大海的房车里煮上一杯咖啡,看看曾写过的代码