按指定日期查询数据库
【
信息来源】 发布日期:
5-8 10:30:00 文章分类:信息资讯
sql="select * from biao where DateDiff('d',date,#2006-2-15#)=0"
sql="select * from biao where DateDiff('m',date,#2006-2-15#)=0"
sql="select * from biao where DateDiff('y',date,#2006-2-15#)=0"
sql="select * from biao where DateDiff('m',date,date())=0"
sql="select * from biao where DateDiff('m',date,now())=0"
以上测试成功!
表名 biao
字段 date (时间类型)