我得到这个错误:错误#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