我用Access数据库,这样在JSP里查询, 有日期和无日期记录,以及月份等于本月的记录。如
select * from aaa where year(date)>1000
select * from aaa where year(date)<1000
select * from aaa where month(date)=7
上面是我的描术语句:
第1句:要查询输入过出生日期的人员
第2句:要查询没有输入过出生日期的人员
第3句:要查询当月生日的人员,其中7应改为系统日期的月份变量。