zoukankan      html  css  js  c++  java
  • msql 清库

    SELECT concat('DROP TABLE IF EXISTS ', table_name, ';')
    FROM information_schema.tables
    WHERE table_schema = 'dr_staging3_plyck';
    
    
    
    
    select concat('DROP PROCEDURE IF EXISTS ', name, ';') 
    from mysql.proc where db = 'dr_staging3_plyck' and `type` = 'PROCEDURE' ;
    
    select concat('DROP FUNCTION IF EXISTS ', name, ';') 
    from mysql.proc where db = 'dr_staging3_plyck' and `type` = 'FUNCTION' ;
    SELECT concat('DROP TABLE IF EXISTS ', table_name, ';')
    FROM information_schema.tables
    WHERE table_schema = 'mydb';
    
    select `name` from mysql.proc where db = 'your_db_name' and `type` = 'PROCEDURE' ;
    select `name` from mysql.proc where db = 'your_db_name' and `type` = 'FUNCTION' ;
    select concat('DROP PROCEDURE IF EXISTS ', name, ';') 
    from mysql.proc where db = 'dr_staging1_shia' and `type` = 'PROCEDURE' ; select concat('DROP FUNCTION IF EXISTS ', name, ';')
    from mysql.proc where db = 'dr_staging1_shia' and `type` = 'FUNCTION' ;
    DROP PROCEDURE IF EXISTS PROC_UPR_DZ; DROP FUNCTION IF EXISTS Code_To_Cnm;
  • 相关阅读:
    lanya
    Apple watch ,小米微信通知
    jenkins grunt 自动构建流程
    刷机步骤
    ipad忘记了锁屏密码,已经越狱了
    ar
    如何在ubuntu中安装php
    阿里云
    docker swarm 集群及可视化界面的安装及配置
    https://github.com/gaoyangxiaozhu/DockerVI
  • 原文地址:https://www.cnblogs.com/xiluhua/p/15585099.html
Copyright © 2011-2022 走看看