我收到'Missing Expression'錯誤。你看到問題了嗎?這可能是愚蠢的。Oracle SQL - DateDiff問題
SELECT CASE WHEN a.CODE = 'CONTACT_CLIENT' THEN (@DATEDIFF('DD',a.LASTMODIFIED,w.DATE_OPEN)) END AS "MET"
FROM WORKORD w
INNER JOIN WORKDET wd on wd.TTNUM = w.SEQ_ID
INNER JOIN ACTIONS a on a.SEQ_ID = wd.ACTION
問題是,這不是Oracle的語法。 –
[計算Oracle SQL中2個日期/時間之間的差異]的可能重複(http://stackoverflow.com/questions/1096853/calculate-difference-between-2-date-times-in-oracle-sql) – Allan