MYSQL查询一个表中的所有字段

select CONCAT(COLUMN_NAME ,',') from information_schema.COLUMNS where table_name = '表名' and table_schema = '库名';

posted @ 2020-09-16 16:49  pigll  阅读(9340)  评论(0编辑  收藏  举报