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 ();