I\'m a beginner in MySQL, and I accidentally created a table with a column named
(price decimal(2,2));
It needs to be decimal(4,2)
decimal(4,2)
It's not a matter of 'UPDATE' it's a matter of changing your table's structure. For that, use ALTER TABLE with MODIFY clause:
MODIFY
ALTER TABLE YourTableName MODIFY COLUMN price DECIMAL(4,2);
sqlfiddle demo