请问如何用mssql 查询A_user 里面addtime 的指定日期!!! ------解决方案-------------------- select * from [7kee].dbo.A_user where addtime='xxxx' ------解决方案-------------------- select * from [7kee].dbo.A_user where cast(addtime as DATE)='xxxx-xx-xx'
或者
select * from [7kee].dbo.A_user where convert(varchar(20),addtime,23)='xxxx-xx-xx' ------解决方案-------------------- select * from [7kee].dbo.A_user where addtime >='2012-03-01' and addtime <'2012-10-01' ------解决方案--------------------
select * from [7kee].dbo.A_user where addtime>='2012-03-01' and addtime<'2012-09-01' ------解决方案-------------------- 最主要的是你的addtime的類型是什麽~ ------解决方案--------------------
delete from [7kee].dbo.A_user where addtime>='2012-03-01' and addtime<'2012-09-01' ------解决方案-------------------- delete from [7kee].dbo.A_user where addtime>='2012-03-01' and addtime<'2012-09-01'
and vip=0