Re: Foreign Unique Constraint

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Foreign Unique Constraint
Дата
Msg-id 200703281108.08697.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Foreign Unique Constraint  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Ответы Re: Foreign Unique Constraint  ("Jon Horsman" <horshaq@gmail.com>)
Re: Foreign Unique Constraint  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Список pgsql-sql
Am Mittwoch, 28. März 2007 00:17 schrieb Phillip Smith:
> Perhaps this...? It would work, but depending how many rows are in the
> table, it could become incredibly slow.
>
> ALTER TABLE table1 ADD CHECK (extension NOT IN (SELECT extension FROM
> table2));

Subqueries are not allowed in check constraints.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: "Jon Horsman"
Дата:
Сообщение: Re: Foreign Unique Constraint
Следующее
От:
Дата:
Сообщение: Re: Regular Expressions [progress]