摘要: 很有用的sql语句。MicrosoftInternetExplorer402DocumentNotSpecified7.8Normal01.--查询当天:select*from[TABLE]whereDateDiff(dd,[dateadd],getdate())=02.--查询24小时内的:select*from[TABLE]whereDateDiff(hh,[dateadd],getDate())<=243.--本月记录SELECT*FROM[TABLE]WHEREdatediff(month,[dateadd],getdate())=04.--本周记录SELECT*FROM[TAB 阅读全文
posted @ 2011-09-21 22:03 ω♪zone咕咯 阅读(2890) 评论(1) 推荐(0) 编辑