Re: Question about SQL statement error

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about SQL statement error
Date: 2004-08-25 11:55:11
Message-ID: cghun6$4b7$1@floppy.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mário Gamito wrote:

> Hi,
>
> I'm a newbie at postgreSQL, although i have years of experience with MySQL.
>
> My question is (and i tried to found the answer):
> why this gives an error ?
>
> SELECT url_negado INTO OUTFILE '/tmp/urls_negados.txt' FROM urls_negados;
>
> Any help would be appreciated.

You can not do it in postgres in that way.
Try with this:

\o '/tmp/urls_negados.txt'
select url_negado from urls_negados;
\o

Regards
Gaetano Mendola

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2004-08-25 11:56:48 Re: Question about SQL statement error
Previous Message Richard Huxton 2004-08-25 11:54:59 Re: Question about SQL statement error