开发者

SQL Statement to update the date

开发者 https://www.devze.com 2022-12-29 15:42 出处:网络
I have a string 1993-08-02 00:00:00.开发者_高级运维0 and I would like to update the date field in a Access Table

I have a string 1993-08-02 00:00:00.开发者_高级运维0 and I would like to update the date field in a Access Table

This is what I have but it is not working.

UPDATE [Table] SET `Birthdate` = '1993-08-02 00:00:00.0' WHERE `ID` = 000


Dates are not strings, but either of the following will result in a date:

DATE [Table] SET `Birthdate` = CDate('1993-08-02 00:00:00.0') WHERE `ID` = 000

(see the documentation for CDate)

DATE [Table] SET `Birthdate` = #08/02/1993# WHERE `ID` = 000
0

精彩评论

暂无评论...
验证码 换一张
取 消