mysql查询指定用户下所有表或表名

8526 足球世界杯怎么画 | 2025-09-03 20:02:57

1、查询指定用户下所有表

select count(*) from information_schema.tables where table_schema='数据库用户名';

2、查询指定用户下所有表名

select table_name from information_schema.tables where table_schema='数据库用户名';