You are on page 1of 1

SQL> SPOOL C:\SATSUN\DYNA.

SQL
SQL> SELECT 'DROP VIEW ' || VIEW_NAME || ';' FROM USER_VIEWS WHERE VIEW_NAME LIK
E 'V%';
'DROPVIEW'||VIEW_NAME||';'
----------------------------------------DROP VIEW V1;
DROP VIEW V101;
DROP VIEW V2;
DROP VIEW V3;
DROP VIEW V4;
DROP VIEW V5;
DROP VIEW V66;
DROP VIEW V7;
DROP VIEW V8;
DROP VIEW V9;
DROP VIEW VEMP;
DROP VIEW VMPSEMP;
12 rows selected.
SQL> SPOOL OFF
SQL> ED C:\SATSUN\DYNA.SQL
SQL> STA C:\SATSUN\DYNA.SQL
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
View dropped.
SQL>

You might also like