Re: Html output - Mailing list pgsql-novice

From Antti Haapala
Subject Re: Html output
Date
Msg-id Pine.GSO.4.44.0302061841280.24627-100000@paju.oulu.fi
Whole thread Raw
In response to Html output  ("Molenda, Mark P" <mark.molenda@eds.com>)
List pgsql-novice
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



pgsql-novice by date:

Previous
From: Antti Haapala
Date:
Subject: Re: Html output
Next
From: Antti Haapala
Date:
Subject: Re: using copy to insert data.