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

猜你喜欢

转载自www.cnblogs.com/littlehb/p/9154798.html
今日推荐