I'm working with Oracle Database and I need to create a script that will generate an import file in TXT format. I'm using sqlplus and the spool command to save the queries but for more than try I can not accommodate the data:
What I need is:
1|Retratos de gente|2|DC|4|4
2|Campanas|2|AC|7|5
3|Edificios historicos|2|DC|7|6
But what I get is:
1|Retratos de gente | 2|DC
4| 4
2|Campanas | 2|AC
7| 5
3|Edificios historicos| 2|DC
7| 6|T
Is there any way to re-order the data?