如果只输入日期,数据库中日期时间字段的时间是多少?
我正在开发一个 Access adp,其数据存储在 sql-server 中。我有一个 sql 语句,它将 dateTime 对象的日期部分插入到表的 datetime 字段中。
INSERT INTO...DateValue(myDateTimeVariable)
默认时间是几点?
(我希望默认为 12:00 AM)
I am working on an Access adp that has its data stored in sql-server. I have a sql statement that inserts the date part of a dateTime object into a datetime field of a table.
INSERT INTO...DateValue(myDateTimeVariable)
What is the time defaulted to?
(I am hoping that it defaults to 12:00 AM)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,默认为中午 12:00。
正如您通过简单的测试所看到的。
Yes, it defaults to 12:00 AM.
As you could have seen with a simple test.
默认为上午 12:00。
It defaults to 12:00 AM.
你是对的。中午 12:00
You are correct. 12:00 AM