Re: Disappearing Records

Поиск
Список
Период
Сортировка
От Harald Fuchs
Тема Re: Disappearing Records
Дата
Msg-id 87d5ljm2be.fsf@srv.protecting.net
обсуждение исходный текст
Ответ на Disappearing Records  (Rory Browne <rory.browne@gmail.com>)
Список pgsql-general
In article <m23bmff78i.fsf@Douglas-McNaughts-Powerbook.local>,
Douglas McNaught <doug@mcnaught.org> writes:

> Rory Browne <rory.browne@gmail.com> writes:
>> select u.username, g.groupname from users u, groups g where u.group_id=g.id
>> (assuming users are in exactly one group)
>>
>> If the group_id field in the users table was corrupted, and set to a
>> value that isn't in the groups table, then that view wouldn't return
>> anything.

> That's why foreign key constraints are good.  :)

Well, Rory already confessed that he came from a MySQL background :-)

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: md5 hash on table row
Следующее
От: Jon Lapham
Дата:
Сообщение: Re: md5 hash on table row