Insert multiple avec autoincrement
Bonjour à tous,
j'ai un fichier avec des instructions INSERT multiple et l'un des champs de ma table est auto increment,
alors je fait
Code:
1 2 3 4 5
|
INSERT INTO tarifaire(tf,dur,catg,ft,typ)
VALUES ('250000','30','Pan Triv','12','Aff Temp');
INSERT INTO tarifaire(tf,dur,catg,ft,typ)
VALUES ('2750000','1 ','Pan Triv','12','Aff Perm'); |
Et là j'ai une erreur du type ERROR: INSERT has more expressions than target columns
État SQL :42601
tandis que l'insertion ligne par ligne marche
Code:
1 2
| INSERT INTO tarifaire(tf,dur,catg,ft,typ)
VALUES ('250000','30','Pan Triv','12','Aff Temp'); |
et ensuite
Code:
1 2
| INSERT INTO tarifaire(tf,dur,catg,ft,typ)
VALUES ('2750000','1 ','Pan Triv','12','Aff Perm'); |
Etant donnée que j'ai des milliers de lignes, je ne peux procéder ligne par ligne!
Quelqu'un a une idée?
Nota: C'est un fichier qui contient les commandes INSERT ...