Hi!
I'm not really "programmer" but I have to do a script.
The purpose of this script is to have something like this on input :
and like this on output :
Can I do this easily with perl?
The input file is an simplify exemple, I paste you a real data file :
Regards
I'm not really "programmer" but I have to do a script.
The purpose of this script is to have something like this on input :
Code:
CREATE TABLE : prg1;TAB1 AS
SELECT : prg1;COL1,COL2,COL3
FROM : prg1;TABLEFROM
CREATE TABLE : prg1;TAB2 AS
SELECT : prg1;ALIAS1.COL1,ALIAS2.COL2
FROM : prg1;TABLEFROM1 ALIAS1, TABLEFROM2 ALIAS2
and like this on output :
Code:
prg1;TAB1;TABLEFROM;COL1
prg1;TAB1;TABLEFROM;COL2
prg1;TAB1;TABLEFROM;COL3
prg1;TAB2;TABLEFROM1;COL1
prg1;TAB2;TABLEFROM2;COL2
Can I do this easily with perl?
The input file is an simplify exemple, I paste you a real data file :
Code:
CREATE TABLE : programme1.out;TABLE1 AS
SELECT : programme1.out; DISTINCT PERS.ID_PERS
FROM : programme1.out;TAB_GRP GRP , TAB_PERS PERS
CREATE TABLE : programme1.out;TABLE2 AS
SELECT : programme1.out;ID_PERS,
FROM : programme1.out;TABLE_FROM1
Regards