sysdatetime()是SQLServer 2008中新增的日期时间型函数,在08版本之前不能使用
SELECT SYSDATETIME()
要获取当前时间需要使用getdate()函数
select getdate()
在加入时间差条件是可以这样写
datediff(hh,fdate,getdate())
sysdatetime()是SQLServer 2008中新增的日期时间型函数,在08版本之前不能使用
SELECT SYSDATETIME()
要获取当前时间需要使用getdate()函数
select getdate()
在加入时间差条件是可以这样写
datediff(hh,fdate,getdate())