mysql query to add column with default value current_timestamp code example Example: mysql add column default value ALTER TABLE table1 ADD COLUMN foo INT DEFAULT 0;