Re: I often have to do "update if exist, else insert", is my database design wrong?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: I often have to do "update if exist, else insert", is my database design wrong?
Дата
Msg-id 48899A62.5020704@archonet.com
обсуждение исходный текст
Ответ на I often have to do "update if exist, else insert", is my database design wrong?  ("A B" <gentosaker@gmail.com>)
Список pgsql-general
A B wrote:
>
> Or is there some more general problem with the table design?
> table_XY is in this case (and most cases) a table like this
>
> create table table_XY (
>    x  int references table_X,
>    y  int references table_Y
> );

Without knowing what XY are and what you are using table_XY for it's
going to be difficult for anyone to offer useful advice.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "A B"
Дата:
Сообщение: I often have to do "update if exist, else insert", is my database design wrong?
Следующее
От: "A B"
Дата:
Сообщение: Subselect with limit