Re: Array Values and References

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Array Values and References
Дата
Msg-id 436B0914.3010808@joeconway.com
обсуждение исходный текст
Ответ на Array Values and References  (Omachonu Ogali <missnglnk@informationwave.net>)
Список pgsql-general
Omachonu Ogali wrote:
> I have a table that contains my unique identifiers and their
> respective values. In another table, I have a field that is an
> array of integers.
>
> Is there a simple way for one to build a constraint that checks
> each array value against the primary key table even though the
> field types don't exactly match? (i.e. int vs int[])

A trigger perhaps?

Joe


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

Предыдущее
От: MaXX
Дата:
Сообщение: Re: Changing ids conflicting with serial values?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Looping through arrays