MySQL - get Alias names from a SELECT ?
Posted: Fri May 16, 2014 3:33 pm
Hi all,
Can anyone offer some advice above how to get the column names or more specifically, alias names from a query?
e.g..
I am looking the get the names of the columns used and the alias returned to LC so that the column names are accurate when the results are put out to a data grid.
The query's are not hard coded or fixed in the application,they are entered manually by the user so the columns cannot be fixed to the data grid before running the query.
Thanks!
Can anyone offer some advice above how to get the column names or more specifically, alias names from a query?
e.g..
Code: Select all
SELECT x, y, concat(x,"_",y) as z FROM MyTable
The query's are not hard coded or fixed in the application,they are entered manually by the user so the columns cannot be fixed to the data grid before running the query.
Thanks!