如何在mysql的表中按设置条件更新数据(update, id)

如何在mysql的表中按设置条件更新数据(update, id)

语句为:update health set website='spring_rain_doctor' where id>1013;
其中:
health为所在的表;
website为需要更新的字段;
'spring_rain_doctor’为更新入website的字段;
id>1013为设置条件,是指在id>1013时更新数据;

猜你喜欢

转载自blog.csdn.net/weixin_42736507/article/details/85014572