pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Syjuco <joseph@asti.dost.gov.ph>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
Cc: PosgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: how do i import my sql query result to a file
Date: 19 Jul 2002 13:15:42 -0400
Message-ID: <1027098943.1861.1.camel@Askr> (raw)
In-Reply-To: <20020719003442.36140.qmail@web40009.mail.yahoo.com>
References: <20020719003442.36140.qmail@web40009.mail.yahoo.com>

thanks for the tips !!! actually i used \g  <filename>.  Again thanks
On Thu, 2002-07-18 at 20:34, Ludwig Lim wrote:
> 
> --- Joseph Syjuco <joseph@asti.dost.gov.ph> wrote:
> > how do i import results of my select query to a file
> > thanks
> > 
> 
> in the psql command prompt type
> \o <filename>
> 
> and then type your select query.
> The result will be dumped into <filename>
> 
> ludwig.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly





view thread (5+ messages)

Message-ID: <1027098943.1861.1.camel@Askr>
Permalink:  ../1027098943.1861.1.camel@Askr/
Also on:    postgresql.org/message-id/1027098943.1861.1.camel@Askr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: joseph@asti.dost.gov.ph, lud_nowhere_man@yahoo.com
  Subject: Re: how do i import my sql query result to a file
  In-Reply-To: <1027098943.1861.1.camel@Askr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox