Re: SELECT to an external file

From: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
To: Mário Gamito <gamito(at)netual(dot)pt>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT to an external file
Date: 2004-08-24 17:22:12
Message-ID: 412B7944.5060705@istreamimaging.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

psql -c "select * from table" dbname >filename.txt

Mário Gamito wrote:

> Hi,
>
> How can i draw the results of a SELECT in to a file in the filesystem ?
>
> Warm Regards,
> Mário Gamito
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Amiel 2004-08-24 17:35:49 Re: SELECT to an external file
Previous Message Mário Gamito 2004-08-24 17:20:45 Re: SELECT to an external file