版本 10.4.8-MariaDB-1:10.4.8+maria~bionic MySQL 8.0
在 select xxx from xxx where field = 'yyy' 语句中,若是 yyy 末尾有空格或者 field 中末尾有空格,比较时都会去掉行尾的空格再作比较。行首的空格不会被去掉,字段无索引,like 'yyy' 会精确匹配。暂时不知道是特性仍是 BUG。ionic
select xxx from xxx where field = 'yyy'