I have the following query to set a default value to a column:
ALTER TABLE tableName ADD COLUMN testDate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
But I see 0000-00-00 00:00:00
for testDate column in newly inserted rows.
I would like to see current date and time in it.
Can anybody explain why this might be happening?