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

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

pgsql-general by date

Next:From: Oliver ElphickDate: 2004-08-25 11:56:48
Subject: Re: Question about SQL statement error
Previous:From: Richard HuxtonDate: 2004-08-25 11:54:59
Subject: Re: Question about SQL statement error

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