批量删除数据库表
Select CONCAT( ‘drop table ‘, table_name, ‘;‘ ) FROM information_schema.tables where table_schema=‘数据库名称‘ /*条件*/ and table_name not in(select Code as table_name from FW_Table)
时间: 2024-10-05 12:12:22
批量删除数据库表
Select CONCAT( ‘drop table ‘, table_name, ‘;‘ ) FROM information_schema.tables where table_schema=‘数据库名称‘ /*条件*/ and table_name not in(select Code as table_name from FW_Table)