2010年6月8日
摘要: --前一日 select * from 表名 where datediff(d,cast(日期 as datetime),getdate())=1 --上周 select * from 表名 where datediff(dw,cast(日期 as datetime),getdate())=1 阅读全文
posted @ 2010-06-08 09:49 Theo 阅读(2651) 评论(1) 推荐(0) 编辑