Re: Question about SQL statement error - Mailing list pgsql-general

From Gaetano Mendola
Subject Re: Question about SQL statement error
Date
Msg-id cghun6$4b7$1@floppy.pyrenet.fr
Whole thread Raw
In response to Question about SQL statement error  (Mário Gamito <gamito@netual.pt>)
List 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


pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: Question about SQL statement error
Next
From: David Suela Fernández
Date:
Subject: copy a database