[1]添加数据报错:Duplicate entry '0' for key 'PRIMARY' (1)问题现象 SQL 语句如下: DROP TABLE test_distinct; CREATE TABLE `test_distinct` ( `Id` ) NOT NULL, `IdA` ) DEFAULT NULL, `IdB` ) DEFAULT NULL, `IdC` ) DEFAULT NULL, `IdD` ) DEFAULT NULL, PRIMARY KEY (`Id`) ) E…