Answers:
ALTER TABLE YourTable ALTER COLUMN YourColumn columnType NULL
ALTER TABLE YourTable ALTER COLUMN YourColumn DROP NOT NULL
删除约束not null
到null
ALTER TABLE 'test' CHANGE COLUMN 'testColumn' 'testColumn' datatype NULL;
参考:https : //www.tutorialspoint.com/How-can-we-remove-NOT-NULL-constraint-from-a-column-of-an-existing-MySQL-table
ALTER TABLE tableName MODIFY columnName columnType NULL;