mysql查询表字段类型注释带序列号
SELECT
( @i := @i + 1 ) AS rownum,
column_name,
column_comment,
COLUMN_TYPE
FROM
information_schema.COLUMNS,
( SELECT @i := 0 ) as i
WHERE
table_name = 'sev_blacklist_staff'
AND table_schema = 'protal'
微信截图_20200824111644.png