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
版权属于:
小破孩
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权
评论