-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp.sql
More file actions
21 lines (21 loc) · 665 Bytes
/
p.sql
File metadata and controls
21 lines (21 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- Ver https://blogs.oracle.com/opal/entry/sqlplus_101_substitution_varia
SET VERIFY OFF
SET DEF ON
ACCEPT script PROMPT "Nombre del paquete: "
SET TERMOUT OFF
COLUMN USUARIO new_value esquema
COLUMN SCRIPT_SPEC new_value script_spec_low
COLUMN SCRIPT_BODY new_value script_body_low
SELECT LOWER(USER) USUARIO,
LOWER('&&script') || '.s.sql' SCRIPT_SPEC,
LOWER('&&script') || '.b.sql' SCRIPT_BODY
FROM DUAL;
DEFINE esquema
DEFINE script_spec_low
DEFINE script_body_low
SET TERMOUT ON
PROMPT Compilando &&script_spec_low
@@./&&esquema/ddl/pack/&&script_spec_low
PROMPT Compilando &&script_body_low
@@./&&esquema/ddl/pack/&&script_body_low
SET VERIFY ON