mysql 查询指定数据库所有表名

使用select命令,可以查询所有表名

写法如下:

select table_name from information_schema.tables where table_schema=‘当前数据库’

更多推荐

mysql 查询指定数据库所有表名