Você precisa do
FORMAT
função:http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_format
SELECT
P.price,
FORMAT(P.price, P.decimals) as price,
P.decimals
FROM
product P;
FORMAT
função:SELECT
P.price,
FORMAT(P.price, P.decimals) as price,
P.decimals
FROM
product P;