mysql更新语句

1,查找含有某个字符的信息,并将其全部替换,以表名bed,字段名title为例:update bed set title="大床" where title like "%大床%";

2、替换更新表内容:update bed set title=replace('title','原来的内容','要替换的内容') where title like "%原来的内容%";

猜你喜欢

转载自www.cnblogs.com/jerryliuxin/p/11343763.html