Re: doubts about a constraint's definition - Mailing list pgsql-general

From enediel
Subject Re: doubts about a constraint's definition
Date
Msg-id 008a01c2efd0$cb1285e0$2824a8c0@nsoft
Whole thread Raw
In response to doubts about a constraint's definition  ("enediel" <enediel@com.ith.tur.cu>)
List pgsql-general
Thanks  Peter for your attention, it's exactly what I needed
:>)

Greetings
Enediel
Linux user 300141

Happy who can penetrate the secret causes of the things
¡Use Linux!
----- Original Message -----
From: "Peter Gibbs" <peter@emkel.co.za>
To: "enediel" <enediel@com.ith.tur.cu>; "postgresql"
<pgsql-general@postgresql.org>
Sent: Friday, March 21, 2003 6:32 AM
Subject: Re: [GENERAL] doubts about a constraint's definition


> enediel wrote:
>
> > 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
> >
> > declaring a constraint
> > ... unique(column name) is not enough to me  'cause
> >
> > 'ab'
> > 'AB'
> > 'aB'
> > ....
> > will be accepted
> >
>
> Create a unique functional index e.g.
> create unique index index_name on table_name (upper(fieldname));
> --
> Peter Gibbs
> EmKel Systems
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>


pgsql-general by date:

Previous
From: "Peter Gibbs"
Date:
Subject: Re: doubts about a constraint's definition
Next
From: Tom Lane
Date:
Subject: Re: doubts about a constraint's definition