您的位置:首页 > 数据库 > MySQL

mysql批量替换数据表内容的命令

2013-03-19 21:23 127 查看
update s_spaceitems set lastpost =replace (lastpost, '13528', '10192') where itemid between 501 and 700;

比如我要批量替换数据库s_spaceitems的lastpost字段的内容13528为10192。设定ID的数值。501-700的。

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐