Removing NOT NULL restriction from column in MySQL

Aufwind picture Aufwind · Apr 18, 2011 · Viewed 19.9k times · Source

How can I alter a column whose restricted to NOT NULL to accept NULL values?

Answer

regality picture regality · Apr 18, 2011

just modify it and put in the old type and leave off the not null

alter table table_name modify column foo int;