mysql 查询数据库中所有表名称

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

select table_name 
from information_schema.tables 
where table_schema='数据库名称' and table_type = 'BASE TABLE' AND table_schema = DATABASE ();

 

posted @ 2021-08-29 15:03  CodeYaSuo  阅读(514)  评论(0编辑  收藏  举报