-
Notifications
You must be signed in to change notification settings - Fork 0
/
f.sql
31 lines (31 loc) · 1.03 KB
/
f.sql
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
26
27
28
29
30
31
------------------------------------------------------
-- --
-- M. Armaghan Saqib --
-- --
-- Email: armaghan@yahoo.com --
-- --
-- http://www.geocities.com/armaghan/ --
-- --
------------------------------------------------------
SET HEADING OFF
SET PAGESIZE 0
SET TERMOUT OFF
SET FEEDBACK OFF
SET TRIMSPOOL ON
SET LINESIZE 2000
SPOOL output.sql
SELECT text FROM sqlpp_output ORDER BY line;
DELETE FROM sqlpp_output;
COMMIT;
---
--- You should use following statements instead of the above ones
--- if more then one user connect to same DATABASE USER.
---
-- SELECT text FROM sqlpp_output WHERE (sessionid = USERENV('SESSIONID')) ORDER BY line;
-- DELETE FROM sqlpp_output WHERE (sessionid = USERENV('SESSIONID'));
--
SPOOL OFF
SET TERMOUT ON
SET FEEDBACK ON
SET HEADING ON
ED output.sql