unique (a,b)?

Поиск
Список
Период
Сортировка
От Knut Suebert
Тема unique (a,b)?
Дата
Msg-id 20010504225843.A7396@cascal.vtb
обсуждение исходный текст
Ответы Re: unique (a,b)?
Re: unique (a,b)?
Список pgsql-novice
Hello,

I thought that a table-constraint unique (a,b) in a table like

a | b
--+--
1 | 1
2 | 2
3 | 3

would allow an insert of (1,2) as it is an unique combination. That seems to be wrong.

Is there an easy way to check unique combinations in a table definition? Or
do I have to define a special trigger?

Thanks,
Knut

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