FORMAT() function:
http://dev.mysql.com/doc/refman/5.5/en/string-functions.html#function_format
SELECT CONCAT('$', FORMAT(val, 2)) ... ;
More Related Contents:
- NOT LIKE not working with SHOW [duplicate]
- MySQL Error 1093 – Can’t specify target table for update in FROM clause
- MySQL – Rows to Columns
- How to define a custom ORDER BY order in mySQL
- Comparison of full text search engine – Lucene, Sphinx, Postgresql, MySQL? [closed]
- How to get the number of days of difference between two dates on MySQL?
- MySQL Error 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes
- conditional join in mysql
- a count for each join – optimisation
- How to grant all privileges to root user in MySQL 8.0
- MySQL Group by SUM
- How to remove leading and trailing whitespace in a MySQL field?
- How to reset the root password in MySQL 8.0.11?
- How does MySQL CASE work?
- What characters have to be escaped to prevent (My)SQL injections?
- How to save MySQL query output to excel or .txt file? [duplicate]
- MySQL: Set user variable from result of query
- Is there a naming convention for MySQL?
- Is there any performance gain in indexing a boolean field?
- NodeJS responded MySQL timezone is different when I fetch directly from MySQL
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ [duplicate]
- How to swap values of two rows in MySQL without violating unique constraint?
- SQL date format convert? [dd.mm.yy to YYYY-MM-DD]
- Storing images in MySQL [closed]
- Would it help to add index to BIGINT column in MySQL?
- Query to count the number of tables I have in MySQL
- How to kill MySQL connections
- `MODIFY COLUMN` vs `CHANGE COLUMN`
- INSERT INTO Table from multiple tables
- How to solve MySQL max_user_connections error