访问SQL日期格式 [英] Access SQL Date Format
本文介绍了访问SQL日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何根据Date属性检索记录?我在尝试:
WHERE会议[MDate] = '16 / 12/2011'
这是我使用的格式,但我得到:
条件表达式中的数据类型不匹配
问题解决:应该是:
WHERE会议[MDate] = 16/12/2011
没有引号。
解决方案适用于where子句使用
columnName =#mm / dd / yyyy#
How can I retrieve a record based on a Date property? I'm trying:
WHERE Meetings.[MDate] = '16/12/2011'
which is the format I use but I get :
"Data type mismatch in criteria expression"
Problem solved: It should have been:
WHERE Meetings.[MDate] = 16/12/2011
No quotation marks.
解决方案For where clauses use
columnName = #mm/dd/yyyy#
这篇关于访问SQL日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文