Re: Frustration with \copy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Frustration with \copy
Дата
Msg-id 27488.1284142449@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Frustration with \copy  (Ralph Smith <rsmith@10kinfo.com>)
Список pgsql-general
Ralph Smith <rsmith@10kinfo.com> writes:
> I have a one column .txt file on Ubuntu that I'm trying to upload, and ....
>     \copy new_coupons '/home/rsmith/testfile.txt'

I think you need
    \copy new_coupons from '...'

Like it says, it's supposed to match the backend syntax, modulo needing
a starting backslash and no ending semicolon.

            regards, tom lane

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: sql DO in rule 9.0rc1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: sql DO in rule 9.0rc1