select * from table where year(riq)=2004 and month(riq)=4 and day(riq)=25不知道行不行.. 我不是很懂.. 呵呵