CoderZone.org

Category: >> mySQL >> Format numbers to two decimal places Bookmark and Share

<< lastnext >>

Snippet Name: Format numbers to two decimal places

Description: Formatting numbers to two decimal places with mySQL.

Comment: (none)

Author: CoderZone
Language: MYSQL
Highlight Mode: MYSQL
Last Modified: March 01st, 2009

SELECT name, score, FORMAT(score,2) 
FROM games WHERE id <= 10
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 6