Data/Seed and Data/Test: Correction to apau.ctl to remove duplicates. Modules/compile.sql: Correction to 'report' query. Schema/ext...: Check whether external tables have been defined before attempting to drop them. Schema/v_...: Force creation of views that rely on PL/SQL code. Explicitly name the column returned by V_QUOTE_DETAILS.vw so that the comments can be applied. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3452 248e525c-4dfb-0310-94bc-949c084e9493
41 lines
805 B
Plaintext
41 lines
805 B
Plaintext
BEGIN
|
|
FOR l_rec IN (SELECT 1
|
|
FROM user_tables
|
|
WHERE table_name = 'EXT_CAVEATS') LOOP
|
|
EXECUTE IMMEDIATE 'DROP TABLE ext_caveats';
|
|
END LOOP;
|
|
END;
|
|
/
|
|
create table ext_caveats
|
|
(
|
|
field_1 varchar2(240),
|
|
field_2 varchar2(240),
|
|
field_3 varchar2(240),
|
|
field_4 varchar2(240),
|
|
field_5 varchar2(240),
|
|
field_6 varchar2(4000)
|
|
)
|
|
ORGANIZATION EXTERNAL
|
|
( type oracle_loader
|
|
default directory webmip_bulk_load
|
|
access parameters
|
|
( records delimited by NEWLINE
|
|
READSIZE 10485760
|
|
skip 1
|
|
fields terminated by ','
|
|
optionally enclosed BY '"'
|
|
missing field values are null
|
|
(
|
|
field_1,
|
|
field_2,
|
|
field_3,
|
|
field_4,
|
|
field_5,
|
|
field_6 CHAR(2000)
|
|
)
|
|
)
|
|
location ('CAVEATS.csv')
|
|
)
|
|
reject limit unlimited
|
|
/
|