The default behaviour of LIKE and the other comparison operators, = etc is case-sensitive.
Is it possible make them case-insensitive?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since 10gR2, Oracle allows to fine-tune the behaviour of string comparisons by setting the
NLS_COMPandNLS_SORTsession parameters:You can also create case insensitive indexes:
This information was taken from Oracle case insensitive searches. The article mentions
REGEXP_LIKEbut it seems to work with good old=as well.In versions older than 10gR2 it can’t really be done and the usual approach, if you don’t need accent-insensitive search, is to just
UPPER()both the column and the search expression.