update BAIHistoryHour set RecordTime=replace(cast(RecordTime as datetime) ,'2016-11-01 11:00:00','2016-11-28 11:00:00') where DataObjID=527964 or DataObjID=527965
将ID为527965,527964的时间从11月1号替换为11月28号
本文介绍了一种通过SQL命令更新特定ID记录时间的方法,即将ID为527965及527964的数据对象的记录时间从2016年11月1日更新至2016年11月28日的具体实现。
update BAIHistoryHour set RecordTime=replace(cast(RecordTime as datetime) ,'2016-11-01 11:00:00','2016-11-28 11:00:00') where DataObjID=527964 or DataObjID=527965
将ID为527965,527964的时间从11月1号替换为11月28号
3574
2万+

被折叠的 条评论
为什么被折叠?