Re: constraint question

Поиск
Список
Период
Сортировка
От mwaples@optusnet.com.au
Тема Re: constraint question
Дата
Msg-id 3A530C2C.EEE32AF1@optusnet.com.au
обсуждение исходный текст
Ответ на Re: amateur nite out  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-novice
ok im dumb - but this is the novice list -

references category(category_id)

worked after Id done everything correct
mwaples@optusnet.com.au wrote:
>
> I have a table category with columns -
> category_id , main_id
>
> I would like to check that the main_id value exists in category_id in
> any row of the table category.
>
> Is it possible to have a foreign key referring to the current table ?
> Or should I be using a trigger to do it ?
>
> I'm thinking I have to use a trigger to do it - but want to make sure.

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

Предыдущее
От: mwaples@optusnet.com.au
Дата:
Сообщение: constraint question
Следующее
От: "Poul L. Christiansen"
Дата:
Сообщение: Re: ColdFusion sez this is valid SQL