I have date value 2017-09-18 11:27:59.547
my table.
我的日期值2017-09-18 11:27:59.547我的桌子。
How can l update to 2017-09-18 00:00:00.000
on all records?
怎么能在所有记录上更新到2017-09-18 00:00:00.000?
Can you give me sql script?
你能给我一个sql脚本吗?
1 个解决方案
#1
4
this should do the trick
这应该可以解决问题
UPDATE table SET field = CAST(field as DATE);
#1
4
this should do the trick
这应该可以解决问题
UPDATE table SET field = CAST(field as DATE);