Access日期时间条件查询 如果字段的数据类型是Date/Time类型,使用普通的方式无法查询精确到时分秒的数据,解决方案如下: 精确到日期: select * from user whe
Access日期时间条件查询
如果字段的数据类型是Date/Time类型,使用普通的方式无法查询精确到时分秒的数据,解决方案如下:
精确到日期:
select * from user where userId = 26 and createTime > #2018/1/25#
精确到时分秒(错误方式):
select * from user where userId = 26 and createTime = #"2018/1/25 8:23:42"#
精确到时分秒(正确方式):
select * from user where userId = 26 and createTime = cdate("2018/1/25 8:23:42");
--结束END--
本文标题: Access日期时间查询
本文链接: https://www.lsjlt.com/news/42394.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
2024-05-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0