Although that type of formatting should be done in your front end you can do something like this in mysql to get what you want:
Code:
SELECT CONCAT('$', FORMAT(mynumberfield, 2)) as fieldalias
FROM mytable;
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.