Re: how do i import my sql query result to a file

From: Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>
To: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
Cc: PosgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how do i import my sql query result to a file
Date: 2002-07-19 17:15:42
Message-ID: 1027098943.1861.1.camel@Askr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)asti(dot)dost(dot)gov(dot)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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-07-19 17:28:18 Re: Two Index Questions
Previous Message Bruno Wolff III 2002-07-19 17:00:00 Re: Two Index Questions