34,590
社区成员
发帖
与我相关
我的任务
分享
select * from table1 where CONVERT(DATETIME,date)>'2009-8-12 13:17:50'
--TRY
select * from table1 where cast(date as datetime)>'2009-8-12 13:17:50'
select
*
from
table1
where
datediff(mm,'2009-8-12 13:17:50', date)>0
DATEDIFF
返回跨两个指定日期的日期和时间边界数。
语法
DATEDIFF ( datepart , startdate , enddate
select * from table1
where datediff(ms,'2009-8-12 13:17:50', date)>0
select * from table1
where datediff(mm,'2009-8-12 13:17:50', date)>0