Home  >  Article  >  Database  >  How to view table names and comments in mysql

How to view table names and comments in mysql

王林
王林Original
2020-10-16 15:27:135310browse

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.

How to view table names and comments in mysql

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn