Mysql查询出所有列名
Posted 黄海的编程知识世界
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘ ;
以上是关于Mysql查询出所有列名的主要内容,如果未能解决你的问题,请参考以下文章