Re: Data loading from a flat file...

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Data loading from a flat file...
Дата
Msg-id 20060106050544.GA81795@winnie.fuhr.org
обсуждение исходный текст
Ответ на Data loading from a flat file...  (Angshu Kar <angshu96@gmail.com>)
Список pgsql-general
On Thu, Jan 05, 2006 at 10:51:55PM -0600, Angshu Kar wrote:
> I've a table schema in pg say as:
>
> (A B C D E)
>
> where none of these fields allow null.
>
> Now, I've a flat file that has got tab-delimited data for B,C and E fields.
> And A,B come from sequences.
>
> Could anyone please let me know how I can upload the complete dataset into
> the table?

See the documentation for COPY (or \copy in psql).  If you need to
adjust sequence values after the load you can use ALTER SEQUENCE
or the setval() function.

--
Michael Fuhr

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

Предыдущее
От: Angshu Kar
Дата:
Сообщение: Re: Data loading from a flat file...
Следующее
От: Andrew - Supernews
Дата:
Сообщение: Re: Adding another primary key to a populated table