Problemi importazione Dump con campo DATETIME
Salve a tutti , ho problemi con l'importazione di un Dump di un data base
il file:
CREATE TABLE `tabella` (
`IDtabella` int(4) unsigned NOT NULL auto_increment,
`data` datetime default NULL ,
PRIMARY KEY (`IDtabella`)
) ENGINE=innoDb DEFAULT CHARSET=latin1;
INSERT INTO `tabella` VALUES ('1','20021101 00:00:00');
L'errore :
ERROR 1292 (22007): Incorrect datetime value: '20021101 00:00:00' for column 'data' at row 1
credevo dipendesse dalla data non valida ( ho anche date del tipo: 00000000 00:00:00) ma sia settando la sessione :
SET SQL_MODE='STRICT_TRANS_TABLES,ALLOW_INVALID_DATES';
oppure
SET SQL_MODE='';
nulla cambia
Il problema sembra il formato della data nel file , se modifico la data in questo formato :
INSERT INTO `tabella` VALUES ('1','2002-11-01 00:00:00');
in pratica aggiungo il simbolo "-" tra anno-mese-giorno i dati vengono importati correttamente
Il problema e che il file dump รจ di 139Mb!!!!!
cosa mi sfugge?
Grazie
Subject
Views
Written By
Posted
Problemi importazione Dump con campo DATETIME
7536
July 25, 2008 03:16AM
3205
July 29, 2008 09:01AM
3428
July 30, 2008 02:50AM
3720
July 30, 2008 08:58AM
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.