1.修改字段里的所有含有指定字符串的文字

UPDATE 表A SET 字段B = replace(字段B, 'aaa', 'bbb')

    example: update  table set url= replace(url, 'aaa', 'bbb')  【将url字段中的aaa批量更改为bbb】

     update table  set url= REPLACE (url,'3','1.png')  where 条件;     

2.常规条件修改:

update table set column='' where column is null

列:update  `table` set `url`='0' where `url` is null

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-12-20
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2021-07-05
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案