【发布时间】:2012-11-06 19:27:20
【问题描述】:
我正在尝试一些examples for DateDiff Function
SELECT DATEDIFF(day,'2008-06-05','2008-08-05') AS DiffDate
这个语句给了我一个错误 From keyword not found where expected。 为什么我会收到此错误,我该如何解决? 另外,当我尝试这个时:
SELECT DATEDIFF(day,datebegin,datestop)
From table;
我收到此错误"datediff" invalid identifier。
如何获得日差?
【问题讨论】: