第一种: 表中所有字段信息
select COLUMN_NAME,COLUMN_COMMENT from information_schema.columns where table_name='表名'
第二种: 查询指定字段信息
select COLUMN_NAME,COLUMN_COMMENT from information_schema.columns WHERE column_name='字段名' and table_name = '表名'
第三种: 查询表信息与字段信息
SELECT * FROM information_schema.columns WHERE COLUMN_NAME='字段' and table_name = '表名';
SELECT * FROM information_schema.columns WHERE table_name = '表名';