Re: case insensitive unique index - Mailing list pgsql-general

From Michael Fork
Subject Re: case insensitive unique index
Date
Msg-id Pine.BSI.4.21.0101301715500.14806-100000@glass.toledolink.com
Whole thread Raw
In response to case insensitive unique index  (Culley Harrelson <culleyharrelson@yahoo.com>)
List pgsql-general
You can create a case insensitive, unique index like this:

CREATE UNIQUE INDEX indexname ON tablename (lower(fieldname))

Michael Fork - CCNA - MCP - A+
Network Support - Toledo Internet Access - Toledo Ohio

On Tue, 30 Jan 2001, Culley Harrelson wrote:

> is there a way to make a unique index case insesitive
> for text data?  I can change case in my front end code but I
> thought I'd ask :)
>
>


pgsql-general by date:

Previous
From: Culley Harrelson
Date:
Subject: case insensitive unique index
Next
From: "Michael Miyabara-McCaskey"
Date:
Subject: Queries against multi-million record tables.