Come dice il messaggio di errore, è necessario aumentare la lunghezza della colonna per adattarsi alla lunghezza dei dati che si sta tentando di inserire (0000-00-00)
EDIT 1:
Seguendo il tuo commento, ho eseguito una tabella di test:
mysql> create table testDate(id int(2) not null auto_increment, pdd date default null, primary key(id));
Query OK, 0 rows affected (0.20 sec)
inserzione:
mysql> insert into testDate values(1,'0000-00-00');
Query OK, 1 row affected (0.06 sec)
EDIT 2:
Quindi, verrà aggiustata si desidera inserire un valore NULL per pdd
campo come il tuo commento Stati? Potete farlo in 2 modi come questo:
Metodo 1:
mysql> insert into testDate values(2,'');
Query OK, 1 row affected, 1 warning (0.06 sec)
Metodo 2:
mysql> insert into testDate values(3,NULL);
Query OK, 1 row affected (0.07 sec)
EDIT 3:
non siete riusciti a modificare l'impostazione predefinita valore del campo pdd
. Ecco la sintassi come farlo (nel mio caso, ho impostato a NULL in partenza, ora voglio cambiare a NOT NULL)
mysql> alter table testDate modify pdd date not null;
Query OK, 3 rows affected, 1 warning (0.60 sec)
Records: 3 Duplicates: 0 Warnings: 1
fonte
2014-11-22 12:10:47