日期:2014-05-16 浏览次数:20389 次
--Drop constraint select 'alter table ' || table_name || ' drop constraint ' || constraint_name || ' ;' from user_constraints where constraint_type = 'R'; --Drop tables select 'drop table ' || table_name || ';' from user_tables; --Drop view select 'drop view ' || view_name || ';' from user_views; --Drop procedure select 'drop procedure ' || object_name || ';' from user_procedures where object_type = 'PROCEDURE'; --Drop function select 'drop function ' || object_name || ';' from user_procedures where object_type = 'FUNCTION'; --Drop sequence select 'drop sequence ' || sequence_name || ';' from user_sequences;