This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET LINESIZE 200 | |
SET PAGESIZE 60 | |
COLUMN FIRST_NAME HEADING 'FIRST NAME' FORMAT A15 WRAP | |
COLUMN LAST_NAME HEADING 'LAST NAME' FORMAT A20 WRAP | |
COLUMN BUSINESS FORMAT A20 WRAP | |
COLUMN PHONE FORMAT A15 WRAP | |
COLUMN EMAIL FORMAT A30 WRAP | |
COLUMN CREATED FORMAT A16 | |
COLUMN MODIFIED FORMAT A16 | |
ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
stringa varchar2(100); | |
cursor cur is | |
select * | |
from user_objects; | |
begin | |
for c in cur loop | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- cross platform! Works on unix and windows. Notice ability to run host programs?! | |
accept _usr prompt 'UserName: (app) ' default 'app' | |
accept _pwd prompt 'Password: (&_usr) ' default &_usr hide | |
accept _tns prompt 'TNSalias: (SUE2DEV) ' default 'SUE2DEV' | |
whenever sqlerror exit | |
connect &_usr/&_pwd@&_tns | |
whenever sqlerror continue |
NewerOlder