string comparision

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chjp kumar
    New Member
    • Nov 2011
    • 1

    #1

    string comparision

    how to perform case insensitive comparision in mysql?
  • DaveRook
    New Member
    • Jul 2007
    • 147

    #2
    Why don't you use the lower case function LCASE() to both strings?

    Comment

    • adriancs
      New Member
      • Apr 2011
      • 122

      #3
      or UCASE() to both strings

      Code:
      SELECT * FROM tablename WHERE UCASE('abCD') = UCASE('ABcd');
      or using like clause

      Code:
      SELECT * FROM tablename WHERE 'abCD' like 'ABcd';

      Comment

      Working...