Re: Bulk inserts into two (related) tables

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Bulk inserts into two (related) tables
Дата
Msg-id CAHOFxGp65_ViUsQ4MfybXj5rNUPrOAzWVeiurY7Jx1TQjNr7UA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bulk inserts into two (related) tables  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Bulk inserts into two (related) tables  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
For each row-
Insert into organizations table if the record does not exist, returning ID.
Insert into people using that ID.

Else, load all the data with empty ID column on person table,then just update the person table afterward and drop the org name column.

Perhaps I am missing something.

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Bulk inserts into two (related) tables
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Bulk inserts into two (related) tables