Using currency $ format with sql server?

前端 未结 4 1603
面向向阳花
面向向阳花 2021-01-29 06:13

I have data in my sql database like 645.000 and i need to format it to include currency symbols e.g., $645.000

How can I achieve this in SQL?

4条回答
  •  自闭症患者
    2021-01-29 06:34

    what is the datatype of your column?

    In general currency prefixes should be added only in the UI (User Interface) and at the database level you should work just with numbers. Best data type to store money values is MONEY.

提交回复
热议问题