Mysql查询出所有列名

 select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = 't_tk_question_info' and table_schema = 'dsideal_db' ;
 select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = 't_sjk_paper_info' and table_schema = 'dsideal_db' ;
 select group_concat(COLUMN_NAME Separator ',') as COLUMN_NAME from information_schema.COLUMNS where table_name = 't_wkds_info' and table_schema = 'dsideal_db' ;
 
       

posted @ 2018-06-08 11:38  糖豆爸爸  阅读(553)  评论(0编辑  收藏  举报
Live2D