SQL 批量修改一个字段的值为另一个字段的值

1 SELECT createTime,create_time FROM ali_ons_topic WHERE state=2 AND create_time BETWEEN '2016-07-25 14:30:00' AND '2016-07-25 15:20:28';
2 UPDATE ali_ons_topic SET create_time=createTime WHERE state=2 AND create_time BETWEEN '2016-07-25 14:30:01' AND '2016-07-25 15:20:25';

 

转载于:https://www.cnblogs.com/hym-pcitc/p/5707463.html

你可能感兴趣的:(SQL 批量修改一个字段的值为另一个字段的值)