set @timeoutd= datediff(minute,@starttime,getdate())-timoutm这句出错
可是我看到datediff的例子中却也有这样使用的例子:
USE pubs
GO
SELECT DATEDIFF(day, pubdate, getdate()) AS no_of_days
FROM titles
GO
可是我看到datediff的例子中却也有这样使用的例子:
USE pubs
GO
SELECT DATEDIFF(day, pubdate, getdate()) AS no_of_days
FROM titles
GO
http://community.csdn.net/Expert/topic/4027/4027437.xml?temp=.1709253