ALTER TABLE mytable MODIFY quantity NUMERIC(20, 2)
Replace NUMERIC(20, 2)
with your actual datatype, but without NOT NULL
constraint.
To show your current column definitions, run
SHOW CREATE TABLE mytable
in mysql
(the command line client)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…