mysql删除库中的所有表的方法:直接执行【select table_name from information_schema.tables where table_schema = 'mydb';】语句即可删除。
直接在命令行执行以下sql语句即可:
(推荐教程:mysql视频教程)
select concat('drop table if exists ', table_name, ';')from information_schema.tableswhere table_schema = 'mydb';
说明:mydb表示所需删除表的数据库名称。
相关推荐:mysql教程
以上就是mysql怎么删除库中的所有表的详细内容。