Mysql删除全部表不删除数据库方法

删除表的命令html drop table 表名; 若是有200张表,执行200次,想一想就不想动手了。web 下面提供一个使用information_schema库的方案:sql SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名'; 经过这条命
相关文章
相关标签/搜索