By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

string comparision

P: 1
how to perform case insensitive comparision in mysql?
Nov 25 '11 #1
Share this Question
Share on Google+
2 Replies

P: 147
Why don't you use the lower case function LCASE() to both strings?
Nov 25 '11 #2

P: 122
or UCASE() to both strings

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM tablename WHERE UCASE('abCD') = UCASE('ABcd');
or using like clause

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM tablename WHERE 'abCD' like 'ABcd';
Dec 3 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.