Re: Alternative to Select in table check constraint

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: Alternative to Select in table check constraint
Дата
Msg-id 44A6706C.6000503@myemma.com
обсуждение исходный текст
Ответ на Re: Alternative to Select in table check constraint  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-sql
Richard Broersma Jr wrote:
> But now that I think about it, using the authors suggestion (if it actually worked), how would
> would it be possible to change the active status from one badge to another?
>   
Well, the check constraint as you wrote it requires that there always be 
a badge listed as active for each employee.  If you changed
the contstraint to: CHECK  ( 2 > .....) then you'd be able to unset the 
active status and then set a new one to active.

-- 
erik jones <erik@myemma.com>
software development
emma(r)



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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Alternative to Select in table check constraint
Следующее
От: Daniel CAUNE
Дата:
Сообщение: Constraint UNIQUE on a column not case sensitive