mysql查询表中所有字段s q l

SELECT GROUP_CONCAT(COLUMN_NAME) as r FROM information_schema.columns

where TABLE_SCHEMA = "数据库名" and TABLE_NAME = "表名"

你可能感兴趣的:(MySQL,mysql,数据库)