In MySQL, what is the preferred column type for storing a product\'s price (or currencies in general)? Google learned me DECIMAL of FLOAT is often used, but I wonder which one i
Field type "Decimal" is good.
If you have highe prices then you can use product_price decimal(6,2) NOT NULL, i.e. you can store prices up to 6 digits with decimal point before 2 digits.
Maximum value for field product_price decimal(6,2) NOT NULL, will store price up to 9999.99
If all prices are between 0.01 to 25.00 then product_price decimal(4,2) NOT NULL, will be good, but if you will have higher prices then you can set any values in decimal(4,2).