select t.table_name from information_schema.TABLES t where t.TABLE_SCHEMA ="database_name" and t.TABLE_NAME ="table_name";
information_schema是MySql自带的一张用来描述数据库的元数据表。
TABLES存储的是表相关的一些基础数据,所以可以在此表内检索表的相关信息。
原文:https://blog.youkuaiyun.com/geekyoung/article/details/79161116