I have a price column in products table.
I wonder which MySQL type is the most suitable for this column. Is it DECIMAL, FLOAT, or something else ?
The price can be for example: 139.99, 40, 14.5 (2 digits after the decimal point, like in shops).
Please advise.
DECIMAL beacuse decimal value is stored precisely. E.g. DECIMAL(10, 2) will suit perfectly for prices not higher than 99999999,99. MySQL Docs reference