阿宝 Keep Walking......


JUST DO IT, DO YOUR BEST ! -- 勿在浮沙筑高台

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  49 Posts :: 6 Stories :: 26 Comments :: 0 Trackbacks
select 'drop table ' || table_name ||'cascade constraints;'||chr(13)||chr(10) from user_tables; --delete tables
select 'drop view ' || view_name||' cascade constraints;'||chr(13)||chr(10) from user_views; --delete views
select 'drop sequence ' || sequence_name||' cascade constraints;'||chr(13)||chr(10) from user_sequences;--delete seqs
select 'drop function ' || object_name||' cascade constraints;'||chr(13)||chr(10) from user_objects where object_type='FUNCTION';--delete functions
select 'drop procedure ' || object_name||' cascade constraints;'||chr(13)||chr(10) from user_objects where object_type='PROCEDURE';--DELETE PROCEDURE
select 'drop package ' || object_name||' cascade constraints;'||chr(13)||chr(10) from user_objects where object_type='PACKAGE';--delete pags
posted on 2009-02-10 12:55 阿宝 阅读(446) 评论(0)  编辑  收藏 所属分类: 数据库

只有注册用户登录后才能发表评论。


网站导航: