I need to change the default value of a field from 0 to 3, but the catch is i have thousands of records already and want those records to change the value to 3 from 0 only if th
ALTER TABLE your_table MODIFY your_column tinyint(1) NOT NULL DEFAULT 3; UPDATE your_table SET your_column=3 WHERE your_column=0;
tinyint(1)
NOT NULL
NOT NULl