Re: how can I make a "LIKE" select with case insensitivity using Oracle ?????

From: Date: Thu, 07 Sep 2000 16:00:17 +0000
Subject: Re: how can I make a "LIKE" select with case insensitivity using Oracle ?????
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-2698@lists.php.net to get a copy of this message
If you're running 8i, you can build a function-based index on to_upper(company). Thies Arntzen wrote: > > On Wed, Sep 06, 2000 at 11:03:25PM -0400, Stephen Blake wrote: > > Try this > > > > select company from mytable where to_upper(company) like 'XA%'; > > which is going to force a table-scan (bad luck;-) > > tc > > > > cheers, > > > > Stephen Blake > > > > ----- Original Message ----- > > From: "Joey Garcia" <jgarcia@mobilize.com> > > To: <php-db@lists.php.net> > > Sent: Wednesday, September 06, 2000 4:50 PM > > Subject: [PHP-DB] how can I make a "LIKE" select with case insensitivity > > using Oracle ????? > > > > > > > A company name is "Xavor" > > > and I want to prompt a user (using WML) to type in the first 2 characters > > of > > > a company name then perform select on it, such as : > > > > > > select company from mytable where company like 'xa%' #this returns nothing > > > select company from mytable where company like 'Xa%' #this returns Xavor > > > > > > > > > Any help would be appreciated > > > > > > -- Joey > > > > > > > > > > > > > > > > > > -- > > > PHP Database Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-db-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" > Digital Collections Phone +49 40 235350 Fax +49 40 23535180 > Hammerbrookstr. 93 20097 Hamburg / Germany > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#2698) next »