Composite Unique Key - Doubt

Поиск
Список
Период
Сортировка
От Technical Doubts
Тема Composite Unique Key - Doubt
Дата
Msg-id CAJyuQsHW0paQSWuy0GhzotvnrVxJf0vZNBWPqeZ8xGz8jo+Q7w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Composite Unique Key - Doubt  ("Emre Hasegeli" <emre.hasegeli@tart.com.tr>)
Re: Composite Unique Key - Doubt  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-admin
Team,

Am using Postgres 9.2

I am having a table

technologies
(
technologyid bigint,
status character(1),
implementeddate date
CONSTRAINT technologies_uq UNIQUE (technologyid, status, implementeddate)
)

entering data as

insert into technologies (technologyid,status,implementeddate)
values
(123,'P',null),
(123,'P',null);

2 rows affected.

table accepting duplicate values in spite of composite unique constraint..
where I am doing wrong?

Thanks in advance.

--
John.

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

Предыдущее
От: Rural Hunter
Дата:
Сообщение: Re: Why sequence grant is separated from table?
Следующее
От: "Emre Hasegeli"
Дата:
Сообщение: Re: Composite Unique Key - Doubt