河北沧州琥珀原石市场:ACCESS数据库问题

来源:百度文库 编辑:高校问答 时间:2024/04/20 21:17:48
表 Person 字段 (PersonID,Birthday)
select * from Person where Birthday between '1980-1-1' and '1995-1-1',
我用的access数据库,birthday用的是日期/时间型,在access的查询分析器中这句话有错误,错误显示'类型不匹配',请大家指点一下.
select * from Person where Birthday between 1980-1-1 and 1995-1-1 ,没有"类型不匹配"的错误提示,但也没有返回值,请大家帮帮忙

access里面要用#date#格式
另外应该把between的条件用括号括起来

select * from Person where Birthday between 1980-1-1 and 1995-1-1

select * from Person where Birthday between 1980-1-1 and 1995-1-1