Show comma instead of point as decimal separator

前端 未结 5 1405
孤城傲影
孤城傲影 2020-12-31 15:30

I just want to get the right number format here in germany, so i need to show commas as decimal separator instead of points. But this...

DECLARE @euros money         


        
5条回答
  •  囚心锁ツ
    2020-12-31 16:22

    DECLARE @euros money
    SET @euros = 1025040.2365
    SELECT REPLACE(CONVERT(varchar(30), @euros, 0), '.', ',')
    

    should do it (at least to get 1025040,24)

提交回复
热议问题