select table_name from information_schema.tables where table_schema=database();
输入此代码即可查到本数据库的所有表名。

本文介绍了一种简单的方法来查询当前数据库中的所有表名。通过执行特定的 SQL 语句,可以快速获取数据库内的表结构信息。
select table_name from information_schema.tables where table_schema=database();
输入此代码即可查到本数据库的所有表名。

3882
2万+
670

被折叠的 条评论
为什么被折叠?