Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Case insensitive queries
On 2003-11-29 23:17, Galen Boyer <galenboyer_at_hotpop.com> wrote:
> On Sat, 29 Nov 2003, damorgan_at_x.washington.edu wrote:
>>>>And which part of UPPER(x) = UPPER(y) is to radical to >>>>consider? >>> None. But having to do this is a workaround. Simple. What >>> about that is hard to consider?
> > But upper(x) = upper(y) only works when you want > case-insensitive. What if you now need case-sensitive? That > query won't work. So, it is two queries.
Yes, of course. They are two different questions, so I write them as two different queries.
What are you going to do with an init.ora parameter? Bounce the database each time someone wants to switch from case-sensitive to case-insensitive queries and back? What if you need both at the same time (e.g., case-sensitive comparison on message-ids and case-insensitive comparison on domain names in the same query?).
Now a function for doing case-insensitive queries (or - more generally - locale-specific comparisons) or maybe even a session parameter is a good thing. It makes explicit what you are doing and saves you some coding and design decisions. I don't see how they could work any better than function-based indexes do now.
hp
-- _ | Peter J. Holzer | In this vale |_|_) | Sysadmin WSR | Of toil and sin | | | hjp_at_hjp.at | Your head grows bald __/ | http://www.hjp.at/ | But not your chin. -- Burma ShaveReceived on Sun Nov 30 2003 - 08:57:22 CST