• mysql删除固定前缀的表


    Select CONCAT( 'drop table ', table_name, ';' ) 
    FROM information_schema.tables 
    Where table_name LIKE 'as_%';
    

      列出来,所有,再执行

    SET FOREIGN_KEY_CHECKS = 0;
    -- DROP语句
    drop table as_tongdun_loanevent_and_hitrules_out;
    drop table as_tongdun_loanevent_and_outputfields_out;
    drop table as_tongdun_loanevent_and_policyresult_out;
    drop table as_tongdun_loanevent_and_policyresult_policysethitrule_out;
    SET FOREIGN_KEY_CHECKS = 1;
    

     SET FOREIGN_KEY_CHECKS = 0

    -- DROP语句

    SET FOREIGN_KEY_CHECKS = 1;

  • 相关阅读:
    第7章例7-12
    第7章例7-11
    第7章例7-9
    第7章例7-8
    第7章例7-7
    第7章例7-6
    第7章例7-5
    第7章例7-4
    第7章例7-3
    第7章例7-2
  • 原文地址:https://www.cnblogs.com/hoge/p/7656698.html
Copyright © 2020-2023  润新知