I get a syntax error when I run the following:
show columns from (select * from (select * from my_table) as T)
How can I show the columns from a query that I wrote, rather than from a table?
try this -
SHOW COLUMNS FROM (select * from my_table) T
or Directly SHOW COLUMNS FROM my_table
SHOW COLUMNS FROM my_table