1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| load data
infile *
APPEND
into table brgm_bba_tf
when (4) = 'TF'
fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
trailing nullcols
(societe char(4),no_piece char(6),type_piece char(1),code_enreg char(2),tot_facture,tot_acte,tva_prest,tot_a_payer)
into table brgm_bba_ef
when (4) = 'EF'
fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
trailing nullcols
(societe char(4),no_piece char(6),type_piece char(1),code_enreg char(2),date_piece DATE(6) "DDMMYY",no_fact_orig char(6),
no_commande char(10),donneur_ordre char(10),no_agent char(5),ordre_mission char(10),imputation1 char(10),
imputation2 char(10),ville_depart char(10),nom_voyageur char(10),CODE_VILLE char(5),code_pays char(2))
into table brgm_bba_lf
when (4) = 'LF'
fields terminated by ',' OPTIONALLY ENCLOSED BY '"'
trailing nullcols
(societe char(4),no_piece char(6),type_piece char(1),code_enreg char(2),numero_ligne char(3),
date_ARRIVEE DATE(6) "DDMMYY",date_depart DATE(6) "DDMMYY",lib_prestation char(50),
nom_fournisseur char(50),lib1_facture char(50),facture,quantite)
SQL*Loader: Release 8.0.6.3.0 |
Partager