271 Mysql查询出所有列名

select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema = '数据库名字' ;

 

你可能感兴趣的:(PHP,mysql,数据库,查询出所有列名字,sql)