SELECT concat('$', TotalAmount) FROM tbl
However, normally you do formatting like this in the presentation layer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a column totalAmount and want to convert so that the amount is in US Dollar format.
Example: 9729.20 and I want it to read $9729.20 in display.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
SELECT concat('$', TotalAmount) FROM tbl
However, normally you do formatting like this in the presentation layer.
Try
SELECT FORMAT(100999.99,'C')