Tag Archives: Case Insensitive

Memory Jogger: Case Insensitve and “Like” MySQL queries.

Another one I keep having to remind myself how to do. If you want to do case insensitive SQL queries than just convert both target field and the string to the same case. SELECT * FROM ‘tableName’ WHERE UCASE(‘columnName’) =  UCASE(“targetString”) If you want to use wild cards than use LIKE and % for wild [...]

Posted in Memory Joggers | Also tagged , , | Leave a comment