select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema = '数据库名字' ;
SQL查询技巧:获取数据库表结构信息
select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = '表名' and table_schema = '数据库名字' ;
2270
693
1621

被折叠的 条评论
为什么被折叠?