我将用户“root”连接到我在本地托管以进行开发的数据库“test”。除其他外,我有表格“ratingcomment”。出于某种原因,当我单击“ratingcomment”表时,phpMyAdmin 向我显示以下错误:
Fehler
SQL-Befehl:
INSERT INTO `phpmyadmin`.`pma_history` (
`username` ,
`db` ,
`table` ,
`timevalue` ,
`sqlquery`
)
VALUES (
'root', 'test', 'ratingcomment', NOW( ) , 'SELECT * FROM `ratingcomment`'
)
MySQL meldet:
#1062 - Duplicate entry '838' for key 'PRIMARY'
我用谷歌找到了以下内容
"This indicates that you have a UNIQUE or PRIMARY index on a table, and there is a duplicate value someone on one of the values in one of these indexes."
但我还是不太明白这个错误!我使用主键,它为我的所有表自动递增,所以表实际上不应该有问题。我有另一个名为“rating”的表,其中有一列“comment”。会不会,这会导致问题?