Re: how can I make a "LIKE" select with case insensitivity using Oracle ?????
| From: | Thies Arntzen | Date: | Thu, 07 Sep 2000 07:33:32 +0000 |
| Subject: | Re: how can I make a "LIKE" select with case insensitivity using Oracle ????? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2681@lists.php.net to get a copy of this message | ||
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