5

I have a unique key on a column. When I insert a and then å it throws an error:

PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'å' for key 'constraint-1'' in ..

....But a and å are different UTF characters - so what's going on....?

table has DEFAULT CHARSET=utf8mb4 and utf8mb4_unicode_ci collation.

4

1 回答 1

-4

latin1_swedish_ci在唯一列上使用排序规则。

这是我的服务器屏幕

选择数据库后的画面

选择表格后的画面

表中的记录

输入重复值时出错

于 2015-07-15T20:31:59.757 回答