Re: doubts about a constraint's definition

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "enediel" <enediel(at)com(dot)ith(dot)tur(dot)cu>
Cc: "postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Re: doubts about a constraint's definition
Date: 2003-03-21 15:12:03
Message-ID: 12669.1048259523@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"enediel" <enediel(at)com(dot)ith(dot)tur(dot)cu> writes:
> I need to create a column, where the information is conserved in the same
> way that it was written by the user, but the data of this column is unique
> if it's only taken to capital

CREATE UNIQUE INDEX foo ON tab (UPPER(column));

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Schapachnik 2003-03-21 15:30:54 Posts get losts
Previous Message Anand B Kumar 2003-03-21 14:38:59 Please clarify with regard to Renaming a Sequence