select * from 表 year(yearmonth)=2003 and month(yearmonth)=1
pengdali(大力) :我用你的方法来判断了,具体语句是这样写的: select * from access1 where year(shijian)=03 and month(shijian)=01 可是它的ADOQuery1.RecordCount=0 为什么啊~?我的数据库ACCESS里的日期是中日期,形式是03-01-01这样的问题出在呢????
你用 select year(shijian),month(shijian) from access1看看出来的是什么数据!
select * from access1 where year(shijian)=03 and month(shijian)=01
可是它的ADOQuery1.RecordCount=0
为什么啊~?我的数据库ACCESS里的日期是中日期,形式是03-01-01这样的问题出在呢????
select year(shijian),month(shijian) from access1看看出来的是什么数据!