Suppose I have a complicated SQL query like
select *
from mydbadmin.tablename
inner join mydbadmin.othertablename
on mydbadmin.tablename.id = mydbadmin.othertablename.id
where mydbadmin.tablename.y = 2
What query can I make to get the headers of the table running this query would return?
Notes:
I've checked Oracle query to fetch column names, but that doesn't seem to help because I'm not trying to find the names from an existing table*.
*I have no ability to actually create this table, so making it and then running the ordinary query isn't an option.