select group_concat(COLUMN_NAME separator ', ')
from information_schema.COLUMNS
where table_schema='数据库名' and table_name = '表名';
mysql 获取表所有字段,并用 “,“ 分割
最新推荐文章于 2024-08-07 19:07:34 发布
select group_concat(COLUMN_NAME separator ', ')
from information_schema.COLUMNS
where table_schema='数据库名' and table_name = '表名';