sql="select * from biao where DateDiff('m',date,#2006-2-15#)=0"
sql="select * from biao where DateDiff('y',date,#20">

按指定日期查询数据库

80酷酷网    80kuku.com

  日期|数据|数据库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 (时间类型)











分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: