问题
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