I have created a table with three columns, Id , Name , Quantity. It appears that when I am trying to insert a row with at least one null column or when i am trying to set th
ALTER TABLE mytable MODIFY quantity NUMERIC(20, 2)
Replace NUMERIC(20, 2) with your actual datatype, but without NOT NULL constraint.
NUMERIC(20, 2)
NOT NULL
To show your current column definitions, run
SHOW CREATE TABLE mytable
in mysql (the command line client)
mysql