Re: Question about SQL statement error

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: Question about SQL statement error
Дата
Msg-id cghun6$4b7$1@floppy.pyrenet.fr
обсуждение исходный текст
Ответ на Question about SQL statement error  (Mário Gamito <gamito@netual.pt>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: Question about SQL statement error
Следующее
От: David Suela Fernández
Дата:
Сообщение: copy a database