I\'ve tried using DECIMAL with (2,2) but it won\'t let me use this.
I simply want to store a number, for example 7.50 or 10.50. I need to keep both numbers after th
CREATE TABLE IF NOT EXISTS `table_name` (`id` int(11) NOT NULL AUTO_INCREMENT,`cost` DECIMAL( 10, 2 ) NOT NULL);
This will make the cost column hold a total of 10 digits, 8 before and 2 after the decimal point.