问题
CONVERT ( money, CONVERT ( money, CAST ( round( FTP_AMOUNT, 2 ) AS NUMERIC ( 20, 2 ) ) )
1
) AS FTP_AMOUNT
用的money函数
结果空间不足,无法将 money 值转换为 varchar。
可以强转
select FORMAT(CAST ( round( ‘-8926143870680.62000000’, 2 ) AS NUMERIC ( 20, 2 ) ), ‘N3’)