删除数据库中全部表、视图、序列、函数、存储过程、包的脚本
select 'drop table ' || table_name ||';'||chr(13)||chr(10) from user_tables --delete tablesunionselect 'drop view ' || view_name||';'||chr(13)||chr(10) from user_views --delete viewsunionselect 'drop sequence ' || sequence_name||';'||chr(13)||chr(10) from user_sequences--delete seqsunionselect 'drop function ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='FUNCTION'--delete functionsunionselect 'drop procedure ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='PROCEDURE'--DELETE PROCEDUREunionselect 'drop package ' || object_name||';'||chr(13)||chr(10) from user_objects where object_type='PACKAGE';--delete pags
?