当前位置:
代码迷
>>
Ajax
>> 请问一个SQL命令
详细解决方案
请问一个SQL命令
热度:
386
发布时间:
2013-11-23 10:52:51.0
请教一个SQL命令
请教一个SQL命令
一个SQL表,有一个字段deal_date
现要求取出:从
getdate()前二个月
,到
getdate()
之间的记录.
select * from 表 where
getdate()....
分享到:
------解决方案--------------------
select * from 表 where
deal_date between getdate() and DATEADD ( m , -2 , getdate() )
查看全文
相关解决方案