MySQL 查询数据库中的所有表

原文:https://www.cnblogs.com/BenWong/p/3996061.html


select
	table_name, table_type, `engine`
from information_schema.tables
where 1=1 
	and table_schema='wordpress1'
	and table_type='base table';

/* engine:表的存储引擎,此字段关键字,需要添加`符号(就是键盘上ESC下面的那个键) */
/* table_schema:数据库名称 */

猜你喜欢

转载自www.cnblogs.com/guxingy/p/12742622.html
今日推荐