Gerei um arquivo .txt pelo sqlplus.
E gostaria de saber como eu faço para que não venha o select que eu fiz junto.
Esse é o inicio o txt.
Podem perceber que o select aparece.
Alguém pode me dar um dica.
SQL> SELECT P.PERSON_CODE,
2 --TI.TIMESHEET,
3 P.FIRST_NAME||' '||P.SURNAME,
4 --EP.ORGANISATION_CODE,
5 --TI.WEEK,
6 P.PER_CAN_WORK_AWAY,
7 --F.STARTING,
8 P.PERSON_START_DATE,
9 p.email,
10 SUM(TB.TOTAL_HOURS) TOTAL_HORAS
11 FROM
12 PERSON P,
13 EMPLOYMENT_PERIOD EP,
14 TIMESHEET TI,
15 TIME_BOOKING TB,
16 FISCAL F
17 where p.person_end_date is null
18 and ep.person_code = p.person_code
19 and ep.tor_end_date is null
20 and ep.timesheet_required = 'T'
21 and ti.person_code(+) = p.person_code
22 and ti.week(+) BETWEEN '200836' AND '200839'
23 AND ep.organisation_code LIKE '%'
24 AND ti.timesheet = tb.timesheet(+)
25 AND F.WEEK(+) = TB.WEEK
26 GROUP BY
27 P.PERSON_CODE,
28 TI.TIMESHEET,
29 P.FIRST_NAME||' '||P.SURNAME,
30 EP.ORGANISATION_CODE,
31 Ti.WEEK,
32 P.PER_CAN_WORK_AWAY,
33 F.STARTING,
34 P.PERSON_START_DATE,
35 p.email;
aaaaaa.borba@aaaaaaaa.com 40
Muitooo Obrigada,