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;
  • 相关阅读:
    python简单接口的测试(随机数等)
    关于数据库的去重+导入导出参数
    找到并杀死一个软件开启的进程
    blinker库
    HTTP状态码
    一致性哈希算法
    celery
    项目部署
    redis更多
    functools模块
  • 原文地址:https://www.cnblogs.com/xiluhua/p/15585099.html
Copyright © 2011-2022 走看看