在MySQL中,需要以逗号拼接一个表的所有字段 sql语句 SELECTGROUP_CONCAT(COLUMN_NAME SEPARATOR ",")FROMinformation_schema.COLUMNSWHERETABLE_SCHEMA='db_name'ANDTABLE_NAME='table_name' 转自:http://blog.csdn.net/sand_clock/article/details/74533605...
在MySQL中,需要以逗号拼接一个表的所有字段 sql语句 SELECTGROUP_CONCAT(COLUMN_NAME SEPARATOR ",")FROMinformation_schema.COLUMNSWHERETABLE_SCHEMA='db_name'ANDTABLE_NAME='table_name' 转自:http://blog.csdn.net/sand_clock/article/details/74533605...