Mysql method to view table names and comments: execute the [select table_name from information_schema.tables where table_schema='database name';] statement to view.
Query all table names
(Recommended tutorial: mysql video tutorial)
select table_name from information_schema.tables where table_schema='数据库名称';
Query Comments on database table names:
select table_name 表名,TABLE_COMMENT 表注释 from INFORMATION_SCHEMA.TABLES Where table_schema = '数据库名称' AND table_name ="表名"
Related recommendations: mysql tutorial
The above is the detailed content of How to view table names and comments in mysql. For more information, please follow other related articles on the PHP Chinese website!