Bonjour,
Je souhaite creer un fichier CSV avec comme separateur ";" avec file_utl .Est ce que vous pouvez m'aider a mettre à jour le separateur lors de la creation du fichier
Merci d'avance pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 DECLARE F UTL_FILE.FILE_TYPE; cursor c1 is select nom,prenom,adresse from personne; C1_R C1%ROWTYPE; begin F := UTL_FILE.FOPEN('T_DIR','PGO_OFFSET.CSV','w'); FOR C1_R IN C1 loop UTL_FILE.PUT(F,C1_R.nom); UTL_FILE.PUT(F,','||C1_R.prenom); UTL_FILE.PUT(F,','||C1_R.adresse); UTL_FILE.NEW_LINE(F); end loop; UTL_FILE.FCLOSE(F); end;
Amicalement
Partager