我得到這個錯誤:錯誤#1064 SQL時,試圖轉換爲VARCHAR與千個逗號
"#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar,convert(Money,
donate_amt
),1),'.00','')' at line 1"
當嘗試轉換列的所有號碼:donate_amt,表」‘corp_donate’能幫助我如何修復它下面是我試過的代碼:?
select replace(convert(varchar,convert(Money, `donate_amt`),1),'.00','')
錢是在MySQL標準數據類型爲什麼不嘗試將其轉換爲像十進制(19,4)。 – Deepshikha