Re: COPY FROM in psql

Поиск
Список
Период
Сортировка
От Matthew Vernon
Тема Re: COPY FROM in psql
Дата
Msg-id 87r4not8ku.fsf@macbeth.sac.ac.uk
обсуждение исходный текст
Ответ на COPY FROM in psql  (Matthew Vernon <matthew.vernon@sac.ac.uk>)
Ответы Re: COPY FROM in psql  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
Matthew Vernon <matthew.vernon@sac.ac.uk> writes:

> naiively, you might try:
> \set pwd '\'' `pwd` '\''
> COPY table FROM :pwd || '/relative/path/to/data' ;

I should also note that I want to run a series of these commands, hence
setting pwd once and then wanting to use it multiple times.

Matthew

--
Matthew Vernon
Quantitative Veterinary Epidemiologist
Epidemiology Research Unit, SAC Inverness


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

Предыдущее
От: Matthew Vernon
Дата:
Сообщение: COPY FROM in psql
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: COPY FROM in psql