MYSQL中SQL语句查询表字段名、注释、字段类型

xiaoxiao2021-02-28  68

select column_name,column_comment,data_type from information_schema.columns where table_name='你的表名'

PLUS:

查询dababase下所有表名及表注释

SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='database名';

转载请注明原文地址: https://www.6miu.com/read-77608.html

最新回复(0)