MySQL Forums
Forum List  »  MySQL Workbench

Incorrect datetime value: '0000-00-00 00:00:00' for column
Posted by: prash abhang
Date: December 17, 2012 09:03PM

Hi,

I have one column in my db table with type as DATETIME,

So when I do not insert value for the column it get inserted as 0000-00-00 00:00:00.

But when I try to change anything from Mysql workbench, its throws error that

"ERROR: Error 1292: Incorrect datetime value: '0000-00-00 00:00:00' for column"

I have even checked the @@sql_mode , but its blank.

So, I am still confused with, why workbench throws the error for the value that get default inserted?

Options: ReplyQuote


Subject
Views
Written By
Posted
Incorrect datetime value: '0000-00-00 00:00:00' for column
4872
December 17, 2012 09:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.