Re: help request

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: help request
Дата
Msg-id 5356.985707061@sss.pgh.pa.us
обсуждение исходный текст
Ответ на help request  ("Hasan Mokhtari" <mokhtari@hadid.sharif.ac.ir>)
Список pgsql-general
"Hasan Mokhtari" <mokhtari@hadid.sharif.ac.ir> writes:
>  If I use follawing command instead:
>       " \copy  table1 form /tmp/table1.aa using delimiters '|';
>  psql report follawing error :
>      "extra token after file name "
> what I can do?

Leave out the semicolon (';') at the end.  In general, psql's backslash
commands do not use a terminating semicolon --- they just end at the
end of the line.

Also, if you are using a version before 7.0, you may need to update.
I don't think psql supported "using delimiters" in \copy before 7.0.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Hi
Следующее
От: Zak McGregor
Дата:
Сообщение: Re: help request