ming-blogs

删除某一个数据库下面的所有表,但不删除数据库。该语句经过从concat拼接,最后查询出来的是删除表的语句,然后执行那些查询出来的语句就ok了
select concat(‘drop table ‘,table_name,’;’) from information_schema.tables where table_schema=’对应数据库名称’;

分类:

技术点:

相关文章:

  • 2022-02-25
  • 2022-01-13
  • 2021-11-30
  • 2022-12-23
  • 2021-07-24
  • 2021-12-02
猜你喜欢
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-08-08
  • 2021-08-18
  • 2021-10-26
相关资源
相似解决方案