Re: how to get desired html format output? - Mailing list pgsql-novice

From Jayadevan M
Subject Re: how to get desired html format output?
Date
Msg-id OFE4840DED.B31459F7-ON65257A55.0033B292-65257A55.0033EF42@ibsplc.com
Whole thread Raw
In response to how to get desired html format output?  (Anne Wainwright <anotheranne@fables.co.za>)
Responses Re: how to get desired html format output?  (Anne Wainwright <anotheranne@fables.co.za>)
List 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."





pgsql-novice by date:

Previous
From: Anne Wainwright
Date:
Subject: how to get desired html format output?
Next
From: Anne Wainwright
Date:
Subject: Re: how to get desired html format output?