On Thu, 6 Feb 2003, Molenda, Mark P wrote:
> I know when you use psql you can set the output of a query to html with a
> "\H". Is there a way in Java's JDBC to instruct postgres to return it's
> results in this format? If not, can I set postgres up to use html as it's
> default response to queries? If I can get this to work all I need to do
> inside my program is send the result to the PrintWriter and display the
> result.
The HTML rendering is provided by C client library, which psql also uses.
There's no way of forcing the backend to send query results in HTML. I'm
not familiar with JDBC though. It may offer such a functionality.
--
Antti Haapala