Re: how to get desired html format output?

From: Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com>
To: Anne Wainwright <anotheranne(at)fables(dot)co(dot)za>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>, pgsql-novice-owner(at)postgresql(dot)org
Subject: Re: how to get desired html format output?
Date: 2012-08-09 09:27:16
Message-ID: OFE4840DED.B31459F7-ON65257A55.0033B292-65257A55.0033EF42@ibsplc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

> would this normally be done perhaps with a file that could be called by
> psql. This file with all the psql query commands/options and the html
> formatting code within?

1) Turn on the HTML output option -
newgendb=# \H
Output format is html.

2) Direct the output to a file

newgendb=# \o myfile.html

3) Execute the select

4) Turn off output
newgendb=# \o

Regards,
Jayadevan

DISCLAIMER:

"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Anne Wainwright 2012-08-09 09:47:13 Re: how to get desired html format output?
Previous Message Anne Wainwright 2012-08-09 09:07:49 how to get desired html format output?