如果只输入日期,数据库中日期时间字段的时间是多少?

发布于 2024-08-23 16:10:55 字数 206 浏览 10 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

煞人兵器 2024-08-30 16:10:55

是的,默认为中午 12:00。

正如您通过简单的测试所看到的。

Yes, it defaults to 12:00 AM.

As you could have seen with a simple test.

爺獨霸怡葒院 2024-08-30 16:10:55

默认为上午 12:00。

It defaults to 12:00 AM.

花之痕靓丽 2024-08-30 16:10:55
select * from [table where you inserted to] 
where key = [key you used to inserted to]
select * from [table where you inserted to] 
where key = [key you used to inserted to]
记忆里有你的影子 2024-08-30 16:10:55

你是对的。中午 12:00

You are correct. 12:00 AM

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文