Re: unique key issue

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: unique key issue
Дата
Msg-id 20060919134941.GA1789@svana.org
обсуждение исходный текст
Ответ на unique key issue  ("Junkone" <junkone1@gmail.com>)
Список pgsql-general
On Mon, Sep 18, 2006 at 03:54:05PM -0700, Junkone wrote:
> HI
> I have a table with a unique key constraint on col1,col2. The dattabase
> allowed an multiple inserts. here is how
>
> col1          col2
> 'abc'          <empty space>
> 'abc'          <empty space>

Depends on what you mean by <empty space>. If you mean NULL, then it's
according to the SQL standard. NULL <> NULL so those rows are not
equal.

If you mean some real value, then yes, that's wierd.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: vista
Следующее
От: Matthias.Pitzl@izb.de
Дата:
Сообщение: Re: Access to databas from the Internet