I want to insert a datetime
value into a table(SQL Server) using the sql query below
(我想使用下面的SQL查询将datetime
值插入表(SQL Server)中)
insert into table1(approvaldate)values(18-06-12 10:34:09 AM);
But I get this Error msg.
(但我收到此错误消息。) Incorrect syntax near '10'.
I tried it with the quotes
(我用引号尝试过)
insert into table1(approvaldate)values('18-06-12 10:34:09 AM');
I get this error message Cannot convert varchar to datetime
(我收到此错误消息Cannot convert varchar to datetime
)
Kindly help!
(请帮助!)
Thanks. (谢谢。)
ask by Shee translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…