MySQL Forums
Forum List  »  Newbie

Re: Case Sensitivity in selects
Posted by: Felix Geerinckx
Date: August 05, 2005 01:32AM

Tristan Gutsche wrote:

> Is there a function where i can set a search criteria to be case insensitive?
> eg: select img_id, img_title from images where img_filename LIKE setCase(Insensitive,
> '%portugal%');


LIKE comparisons are not case sensitive by default:

SELECT 'abc' LIKE 'AB%'; -> 1

What is the datatype of your img_filename column?

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: Case Sensitivity in selects
August 05, 2005 01:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.