I was wondering if there was anyway to specify returned column names using prepared statements.
I am using MySQL and Java.
When I try it:
St
Prepare a whitelist of allowed column names. Use the 'query' to look up in the whitelist to see if the column name is there. If not, reject the query.