Bonjour,

Je souhaiterais faire un unload sur un fichier .txt de la requete suivante:

select code_postal, porteur, substring(cro_text, 95, 10),
substring(cro_text, 153, 1), date_heure, SUBSTRING(cro_text from 123 for 6) from quantieme_20
where code = '60'
and substr(cro_text, 153, 1) != '0'
and porteur not in (select porteur from quantieme_20
where code = dispo)
and porteur not in (select porteur from quantieme_20
where code = annul)
and porteur not in (select porteur from quantieme_20
where code = retente)
order by code_postal;

avec la commande copy to est ce possible

je n'arrive pas a trouver la bonne syntaxe

Thx