consider a query like select a.apple,b.mango,c.orange from A a,B b,C c where ... (Some conditions)
here i need to fetch only the column names based on the query.
apple mango orange.
we have a query builder where end user creates/generates any type of query using that, my duty is to select only the column names from the query as above for my further operations.
How can i achieve this, through java code or query?
my db is sql server 2005.