我基本上正在尝试正确格式化sql以显示为金钱。这就是我所拥有的,但我不能让逗号出现!
SELECT '$'
+ CONVERT (
NVARCHAR (30),
CONVERT (NUMERIC (30, 2),
round (CONVERT (MONEY, 321321321.321231), 2)))
AS 'Accrued'
答案 0 :(得分:1)
SELECT '$' + CONVERT(varchar(max), CAST(321321321.321231 AS money), 1)