hellozg

1获取删除语句

Select CONCAT( \'drop table \', table_name, \';\' )
FROM information_schema.tables
Where table_schema=数据库名\'  table_name LIKE \'模糊表名%\';

 

例子 :  获取mydatabase 库 下的所有 ‘’sql_‘’开头的表的删除语句;

Select CONCAT( \'drop table \', table_name, \';\' )
FROM information_schema.tables
Where table_schema=\'mydatabase\'  table_name LIKE \' sql_%\';

 

2 复制 输出的结果 再运行删除

分类:

技术点:

相关文章:

  • 2021-11-30
  • 2021-11-30
  • 2021-05-24
  • 2021-11-30
  • 2022-12-23
  • 2021-12-03
  • 2021-10-06
猜你喜欢
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案