MySQL关于Duplicate entry '1' for key 'PRIMARY'错误 今天复习MySQL遇到Duplicate entry '1' for key 'PRIMARY'错误。 原因是主键值为'1'的数据已经存在,主键是唯一的,不可重复。