MySQL query field name specified table

1, all fields in the lookup table (horizontal): the SELECT
the GROUP_CONCAT (COLUMN_NAME SEPARATOR ",")
the FROM
INFORMATION_SCHEMA.COLUMNS
the WHERE
the TABLE_SCHEMA = 'database name'
the AND TABLE_NAME = 'table'

Guess you like

Origin www.cnblogs.com/unknownCode/p/12058034.html