1,查询表中所有字段(横排):SELECT
GROUP_CONCAT( COLUMN_NAME SEPARATOR "," )
FROM
information_schema.COLUMNS
WHERE
TABLE_SCHEMA = ‘数据库名‘
AND TABLE_NAME = ‘表名‘
1,查询表中所有字段(横排):SELECT
GROUP_CONCAT( COLUMN_NAME SEPARATOR "," )
FROM
information_schema.COLUMNS
WHERE
TABLE_SCHEMA = ‘数据库名‘
AND TABLE_NAME = ‘表名‘