add a new column in mysql with default 0 code example Example: mysql add column default value ALTER TABLE table1 ADD COLUMN foo INT DEFAULT 0;