查詢MYSQL數(shù)據(jù)庫所有表名以及表注釋
Select table_name 表名,TABLE_COMMENT 表注釋 from INFORMATION_SCHEMA.TABLES Where table_schema = 'testa' ##數(shù)據(jù)庫名
AND table_name LIKE 'testa'##表名
查詢MYSQL數(shù)據(jù)庫所有字段名以及字段注釋
select column_name, column_comment from information_schema.columns
where table_schema ='www5-2017-05-18' and table_name = 'v1_department';