copy limited number of records

Поиск
Список
Период
Сортировка
От Johnson, Shaunn
Тема copy limited number of records
Дата
Msg-id 73309C2FDD95D11192E60008C7B1D5BB04C74173@snt452.corp.bcbsm.com
обсуждение исходный текст
Ответы copy limited number of records  (Lee Kindness <lkindness@csl.co.uk>)
Re: copy limited number of records  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-general

Howdy:

Running PostgreSQL 7.2.1 on RedHat Linux 7.2.

I'm using copy to create a bunch of flat files with delimiters
and it's going okay.  I've been asked, however, that the clients
don't actually want ALL of the data in the table; perhaps about
100 or so records for testing.

Is there a way to use limit while using the \copy command?
(e.g., \copy t_test_tbl to '/usr/local/home/admin/dev_tbls' using delimiters ',' limit 10)

I know the above doesn't work, but, perhaps there is a work around?

Thanks!

-X

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

Предыдущее
От: "Robert John Shepherd"
Дата:
Сообщение: Re: ODBC: Could not send Query to backend; Socket has been closed
Следующее
От: Lee Kindness
Дата:
Сообщение: copy limited number of records