Handling Queries
The most complicated servlet in our application is SQLQuery.
This will execute an arbitrary SELECT command, and print out the results as an HTML table.
This presents some special problems because we don’t know in advance how many columns the result table will need, or what is the meaning of the entries.
We can cope with this kind of situation using result set metadata.