MySQL删除所有表
1.使用CONCAT函数连接组成删除语句
MariaDB [wiki_db]> select concat('drop table if exists ',table_name,';') from information_schema.tables where table_schema='wiki_db';
+--------------------------------------------------+
| concat('drop table if exists ',table_name
原创
2020-12-05 14:23:37 ·
308 阅读 ·
0 评论