Re: changing multiple pk's in one update

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: changing multiple pk's in one update
Дата
Msg-id 396486430904131418g3898dc5h2472f9efab331489@mail.gmail.com
обсуждение исходный текст
Ответ на Re: changing multiple pk's in one update  (Glenn Maynard <glennfmaynard@gmail.com>)
Ответы Re: changing multiple pk's in one update  (Glenn Maynard <glennfmaynard@gmail.com>)
Список pgsql-sql
On Mon, Apr 13, 2009 at 2:09 PM, Glenn Maynard <glennfmaynard@gmail.com> wrote:

> Your PK is a composite of (entry, order)?  Won't your foreign keys
> elsewhere all break when you shift the order around?

If there really are foreign keys, then an update will not be allowed
to shift a primary key unless the foreign key is set with ON UPDATE
CASCADE then the shifts will be cascaded to all references
automatically.

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug


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

Предыдущее
От: Glenn Maynard
Дата:
Сообщение: Re: changing multiple pk's in one update
Следующее
От: Glenn Maynard
Дата:
Сообщение: Re: changing multiple pk's in one update