In MySQL, certain characters are considered the same when performing searches, e.g. 'n' and 'ñ'; unless you specify BINARY in the condition.

Is there a list somewhere of the characters that are considered the same?

有帮助吗?

解决方案

Case or accent sensitivity behavior is defined by the collation you are using.

The full list of comparable characters in a given collation can be found in collationcharts where you find the MySQL list of collations

If you find your collation in that list you will see a chart of comparable characters.

其他提示

Here is a summary of the utf8 collations: http://mysql.rjweb.org/utf8_collations.html

It shows that 'n' and 'ñ' are considered equal for all but utf8_bin, utf8_spanish2_ci, and utf8_spanish_ci In the Spanish cases, Ñ and ñ are treated like a separate letter and sort after nz and before o.

(Latvian and Polish have a couple of flavors of n that work like the Spanish ñ; but perhaps that is in of importance to you.)

许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top