mysql实现批量修改一个字段数据
如果需要批量修改某一字段的一个值可以使用(1)update 表名 set 字段名=replace(字段名,原值,新值);(2)update 表名 set 字段名=新值 where 条件(字段名=原值);(3)update 表名 set 字段名=新值 where 条件(字段名 is not null);...
·
如果需要批量修改某一字段的一个值可以使用
(1)update 表名 set 字段名=replace(字段名,原值,新值);
(2)update 表名 set 字段名=新值 where 条件(字段名=原值);
(3)update 表名 set 字段名=新值 where 条件(字段名 is not null);
更多推荐
已为社区贡献2条内容
所有评论(0)