sql时间天数操作

select dateadd(m,-1,getdate()) 一个月前

select dateadd(d,-1,getdate()) 一个天前

posted @ 2015-07-09 11:48  595824023  阅读(240)  评论(0编辑  收藏  举报