ALTER TABLE Product ALTER COLUMN weight decimal (5,2);
I tried using (2,1) and MySQL was unable to store the value 12.0 and gave the error message that the entered value was out of the range of weight so I tried increasing its range with the above mentioned query and it is showing a problem with decimal (5,2)
part.