选择Data类型在Access与Sql中的区别

今天编写一个查询语句,其中需要比较日期,系统总是提示数据类型不匹配,经查才发现
在Access查询日期时,需加上#号做为标识
在SQL查询日期时,需加上'号做为标识
select * from simple where date>=#2005-2-24# and date<=#2005-6-18#.
select * from simple where date>='2005-2-24'    and date<='2005-6-18'

posted on 2006-11-10 09:40  煎蛋  阅读(252)  评论(0编辑  收藏  举报

导航