Well, you can use information_schema
tables. For instance, you could use:
create table tempt as
select 300 columns
from a inner join
b
on a.key = b.key;
(I would add something like limit 1
because you may not care about the data.)
Then you can look in information_schema.columns
to get the columns lists in order, with their types. You can even compare the columns to the original table, using SQL statements.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…