爲什麼我會收到'2009'數據?我在做什麼WHERE子句錯了?SQL BETWEEN運營商
SELECT CONVERT(varchar, EventDate, 101) AS EVENTDATE,
CONVERT(varchar, ClosedDate, 101) AS CLOSEDDATED,
DATEDIFF(Day,EventDate,ClosedDate) AS DiffDate,
FROM mytable
WHERE (CONVERT(varchar, EventDate, 101) BETWEEN '04/01/2010' AND '04/30/2010')
@OMG如何didja做的DAT? – Yves 2010-10-29 20:20:15
選擇想要成爲代碼的文本,然後單擊文本編輯器上方的「代碼示例」按鈕(看起來像1和0)。 – FrustratedWithFormsDesigner 2010-10-29 20:21:32