1. 程式人生 > >Mysql查詢出所有列名

Mysql查詢出所有列名

from mysq sel sele columns ide pap ID sid

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‘ ;

Mysql查詢出所有列名