Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3724

Incorrect datetime value: '0000-00-00 00:00:00' for column (no replies)

$
0
0
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?

Viewing all articles
Browse latest Browse all 3724

Trending Articles