Bonjour;

Je voudrais charger mes tables avec des fichiers.txt mais j'ai un message d'erreur lorsque je tape la commande COPY:

CT32=# copy t_adresse from '/home/postgres/tableTxt/T_ADRESSE.txt';

ERROR: invalid input syntax for integer: "insert into T_ADRESSE (ADR_ID, CLI_ID, ADR_LIGNE1, ADR_LIGNE2, ADR_LIGNE3, ADR_LIGNE4, ADR_CP, ADR_VILLE) values ( 1, 1, '123 rue du Général de Gaulle', '', '', '', '78000', 'VERSAILLES');"
CONTEXT: COPY t_adresse, line 1, column adr_id: "insert into T_ADRESSE (ADR_ID, CLI_ID, ADR_LIGNE1, ADR_LIGNE2, ADR_LIGNE3, ADR_LIGNE4, ADR_CP, ADR_V..."

J'ai supprimé cette table et je l'ai recrée en mettant l'id en serial primary key, mais cela ne change rien!

Merci pour votre aide