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
33 lines
645 B
Plaintext
33 lines
645 B
Plaintext
BEGIN
|
|
FOR l_rec IN (SELECT 1
|
|
FROM user_tables
|
|
WHERE table_name = 'EXT_POSTCODES') LOOP
|
|
EXECUTE IMMEDIATE 'DROP TABLE ext_postcodes';
|
|
END LOOP;
|
|
END;
|
|
/
|
|
create table ext_postcodes
|
|
(
|
|
field_1 varchar2(240),
|
|
field_2 varchar2(240)
|
|
)
|
|
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
|
|
)
|
|
)
|
|
location ('POSTCODES.csv')
|
|
)
|
|
reject limit unlimited
|
|
/
|