mySQL format number output , thousands separator
I have a mySQL query which is outputting decimal fields with a comma. SELECT Metals.Metal, FORMAT(Fixes.GBPam, 3) AS AM, FORMAT(Fixes.GBPpm, 3) AS PM, DATE_FORMAT(Fixes.DateTime, '%d-%m-%y') AS Date FROM Fixes, Metals WHERE Metals.Id = Fixes.Metals_Id Fields GBPam and GBPpm are both of type decimal(10,5) Now I want columns AM and PM to be formatted to 3 decimal places in my sql query - Correct I want values in the thousands to be formatted as xxxx.xxx and not x,xxx.xxx - Incorrect Example output from mysql query: Metal AM PM Date Gold 1,081.334 NULL 11-09-12 Silver 21.009 NULL 10-09-12