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'
MySQL query field name specified table
Guess you like
Origin www.cnblogs.com/unknownCode/p/12058034.html
Recommended
Ranking