List of temporary table columns (MySQL)

馋奶兔 提交于 2020-01-01 15:06:31

问题


I need to get list columns of some temporary table (MyISAM) in MySQL in view like number column - name column. I need to know number of column with specific name. In advance, I can't know what is the number of column - I'm using dynamic sql with some variables to create temporary table.

I can not use show columns... because I can't work with results of this function. I can't use INFORMATION_SCHEMA.COLUMNS because it does not contains columns of temporary table.

Some ideas? Thanks in advance!

来源:https://stackoverflow.com/questions/10443672/list-of-temporary-table-columns-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!