会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
infi
博客园
首页
新随笔
联系
订阅
管理
2010年8月30日
Sql 查询当天、本周、本月记录
摘要: Sql代码:Powered by chenjiazi--查询当天: select* from info where DateDiff(dd,datetime,getdate())=0 --查询24小时内的: select* from info where DateDiff(hh,datetime,getDate())<=24 --info为表名,datetime为数据库中的字段值--查...
阅读全文
posted @ 2010-08-30 17:27 infi
阅读(1831)
评论(0)
推荐(0)
编辑
公告