April 2008
1 post
3 tags
Getting the field list returned from an ad-hoc Sql...
So, recently I needed to make an application that allowed a user to enter an arbitrary SQL query, and elsewhere in the UI I needed to display a drop-down with the fields that this arbitrary query returned.
This poses a small problem. It’s very simple if the user is doing simple queries, that don’t take long to execute. You could just run the query, then, take the first result, and get...