使用format方法将字段和查询条件都转换成日期查询 select * from 表名 where format(字段,'yyyy-mm-dd') between format(#2012-6-5#,'yyyy-mm-dd') and format(#2012-6-6#,'yyyy-mm-dd')