SELECT
	column_name as '名',
	column_comment as '注释',
	column_type as '类型',
	IF(column_key='PRI','TRUE','FALSE') AS '主键唯一',
    IF(is_nullable='NO','TRUE','FALSE') AS '非空'
FROM
	INFORMATION_SCHEMA.COLUMNS
WHERE
	table_name = '数据表名'