linux上删除mysql库中的所有表

删除库中所有的表:
1:进入数据库
   use kk222;

2:使用以下命令后,会得到很多删除语句(直接运行得到的删除语句)
   select concat('drop table ',table_name,';') from information_schema.TABLES where table_schema='数据库名称';

猜你喜欢

转载自blog.csdn.net/zzhlinux911218/article/details/85118186