我試圖將日期轉換爲datetime,但出現錯誤。我轉換的數據類型是(float,null),我想將它轉換爲DATETIME。將INT轉換爲DATETIME(SQL)
這段代碼的第一線工作正常,但我得到的第二行此錯誤:
Arithmetic overflow error converting expression to data type datetime.
CAST(CAST(rnwl_efctv_dt AS INT) AS char(8)),
CAST(CAST(rnwl_efctv_dt AS INT) AS DATETIME),
什麼語言?你能告訴我們rnwl_efctv_dt的價值嗎? – 2010-10-04 14:00:07