答案 0 :(得分:4)
此SQL演示了如何使用Format function:
的culture参数declare @f float = 123456.789;
select
[raw] = str(@f,20,3)
,[standard] = cast(format(@f, 'N', 'en-US') as varchar(20))
,[European] = cast(format(@f, 'N', 'de-de') as varchar(20))
产量
raw standard European
-------------------- -------------------- --------------------
123456.789 123,456.79 123.456,79