Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group