From: | Mike Nolan <nolan(at)gw(dot)tssi(dot)com> |
---|---|
To: | alam_it(at)csahome(dot)com (Alam Surya) |
Cc: | pgsql-general(at)postgresql(dot)org, id-postgresql(at)yahoogroups(dot)com |
Subject: | Re: Case insensitive ORDER BY |
Date: | 2004-03-19 06:25:28 |
Message-ID: | 200403190625.i2J6PTIw013784@gw.tssi.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> why does CLAUSE ORDER BY in POSTAGE SQL must have CASE SENSITIVE, what is
> the basic thought? isn't it ORDER BY function is only just a filter
> shorting?
If you were a bond broker, you would probably consider a bond
rated 'AAa' different from one rated 'AAA'.
Case sensitivity is significant for many types of data, that's why
databases should always treat data as case sensitive by default.
For those applications where it doesn't matter, there are case-insensitive
searching and ordering options in PostgreSQL, and if you really don't
need the data in upper/lower case you can always force it to one or the
other with a 'before insert or update' database trigger.
--
Mike Nolan
From | Date | Subject | |
---|---|---|---|
Next Message | Rajat Katyal | 2004-03-19 07:29:57 | |
Previous Message | Matthew Hixson | 2004-03-19 05:08:07 | two phase commit |