MySQL: Query

 20th August 2020 at 8:53am

Core insights of "Query-Related Issues" official documents.

Case Sensitivity in String Searches

用 SQL 字符串搜索时,比较函数看的是表的 collation。比如表的 collation 为 utf8_general_ci 时,字符串比较是不区分大小写的。你的 WHERE field="abcdefg" 会同时识别 abcdefg 和 AbCdEfG。