mysql give column default value code example
Example 1: mysql add column default value
ALTER TABLE table1 ADD COLUMN foo INT DEFAULT 0;
Example 2: set default value mysql db
ALTER TABLE mytbl ALTER j SET DEFAULT 1000;
Example 3: altering the column name in MySQL to have a default value
ALTER TABLE table_name ALTER COLUMN column_name SET DEFAULT 'literal';