sto cercando di importare dei dati in una tabella MySQL contenuti originariamente in un file di testo, denominato "Comuni.txt", il cui contenuto è così distribuito:
2;"ACCIANO";"AQ";"67020"
3;"AIELLI";"AQ";"67041"
4;"ALFEDENA";"AQ";"67030"
5;"ANVERSA DEGLI ABRUZZI";"AQ";"67030"
6;"ATELETA";"AQ";"67030"
7;"AVEZZANO";"AQ";"67051"
8;"BALSORANO";"AQ";"67052"
9;"BARETE";"AQ";"67010"
10;"BARISCIANO";"AQ";"67021"
11;"BARREA";"AQ";"67030"
12;"BISEGNA";"AQ";"67050"
13;"BUGNARA";"AQ";"67030"
14;"CAGNANO AMITERNO";"AQ";"67012"
...
il comando che uso è il seguente:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.18-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> load data local infile "D:\\Comuni.txt"
-> into table Comuni
-> fields
-> terminated by ';'
-> enclosed by '"'
-> lines
-> terminated by '\n'
-> (IdComune, Comune, Provincia, CAP);
Query OK, 128 rows affected (0.02 sec)
Records: 4042 Deleted: 0 Skipped: 3914 Warnings: 11996
mysql>
...
posso sapere perchè mi inserisce solo le righe pari?