switching between insert and update

Поиск
Список
Период
Сортировка
От Travis Hoyt
Тема switching between insert and update
Дата
Msg-id DBEMKMGOMJAGKAKEPPEGKEENDFAA.thoyt@npc.net
обсуждение исходный текст
Список pgsql-novice
Not sure if this is the right list but here goes:

I've got a perl script that inserts some data.  Simple enough, but my
problem is that it fails when I try to insert more data that contains the
same time and id.  Is there an easy way of switching from an INSERT to an
UPDATE and does anyone know of any examples?  There's one more piece to
this puzzle.  The columns names and number of columns addressed are
dynamic and will change for each file loaded into the database.

Thanks,

Travis

Вложения

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

Предыдущее
От: Nick Haw
Дата:
Сообщение: Re: Conditional constraint?
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: rules over multiple tables