unique index on more than one field using functions

Поиск
Список
Период
Сортировка
От domingo@dad-it.com (Domingo Alvarez Duarte)
Тема unique index on more than one field using functions
Дата
Msg-id 70a76315.0107220214.2e699125@posting.google.com
обсуждение исходный текст
Ответы Re: unique index on more than one field using functions  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-sql
I'm trying create a unique index using more than one field and
applying a function in one field to achieve case insensitive
uniqueness but postgresql doesn't accept.



create table a( 
 id int primary key, id2 int not null, name varchar(50), unique(id2, lower(name)) );

Anyone have an idea ?


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

Предыдущее
От: Morgan Curley
Дата:
Сообщение: Procedures in views
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Possible problems with cyclic references