zoukankan      html  css  js  c++  java
  • oracle 删除用户下对象 脚本生成

    select 'drop table ' || table_name ||';'||chr(13)||chr(10) from user_tables;  --delete tables
    select 'drop view ' || view_name||';'||chr(13)||chr(10) from user_views;  --delete views
    select 'drop sequence ' || sequence_name||';'||chr(13)||chr(10) from user_sequences;--delete seqs
    select 'drop function ' || object_name||';'||chr(13)||chr(10) from user_objects  where object_type='FUNCTION';--delete functions
    select 'drop procedure ' || object_name||';'||chr(13)||chr(10) from user_objects  where object_type='PROCEDURE';--DELETE PROCEDURE
    select 'drop package ' || object_name||';'||chr(13)||chr(10) from user_objects  where object_type='PACKAGE';--delete pags 
    select 'drop index ' || object_name || ';' ||chr(13)||chr(10) from user_objects where object_type = 'INDEX'
    本人新博客网址为:http://www.hizds.com
    本博客注有“转”字样的为转载文章,其余为本人原创文章,转载请务必注明出处或保存此段。c++/lua/windows逆向交流群:69148232
  • 相关阅读:
    Codeforces-541div2
    动态规划-线性dp-hdu-4055
    动态规划_线性dp
    动态规划_背包问题笔记
    codeforces-1111
    数论模板
    codeforces-1114F-线段树练习
    2-sat
    拓扑排序
    强连通分量
  • 原文地址:https://www.cnblogs.com/zhangdongsheng/p/2759961.html
Copyright © 2011-2022 走看看