I want to add a new column called 'start_date' to a table called 'PROJECT', and I want this column to be mandatory.
I have tried this:
ALTER TABLE PROJECT
ADD start_date date NOT NULL;
This returns an ERROR:
ERROR 1292 (22007): Incorrect date value: '0000-00-00' for column 'start_date' at row 1.
My question is, how can I add a new column that is also mandatory without inserting unique values in?