码迷,mamicode.com
首页 > 数据库 > 详细

Mysql查询出所有列名

时间:2018-06-08 14:28:36      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:for   dea   orm   mysql   ide   question   inf   mysq   SQ   

 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查询出所有列名

标签:for   dea   orm   mysql   ide   question   inf   mysq   SQ   

原文地址:https://www.cnblogs.com/littlehb/p/9154798.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!