php - MySQL, although the value of 'tab' is not duplicated, an error is still reported: Duplicate entry '1134' for key 'tab'
怪我咯
怪我咯 2017-07-05 09:58:26
0
2
881

The situation is like this:

Note that column 'tab' is not a primary key, it is just a column that does not allow duplicate values;

I have just inserted a record with a tab value of 1134, and then repeatedly inserted a record with a tab value of 1134, and then reported an error: Duplicate entry '1134' for key 'tab'. Of course, it is normal to report an error here; but The next thing is very strange: then insert a record with a tab value of 1155, and the same error as above is still reported!

Obviously the tab value has been changed from 1134 to 1155, why is the same error still reported? ! Refreshing the browser with ctr f5 doesn't work, closing the browser and reopening it doesn't work, changing the browser still doesn't work!

What exactly is going on?

----------------------Already have the answer--------------------- --

Alas, it turns out that I forgot to upload the file on the update server!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
淡淡烟草味

Print out the sql statement, there should be something wrong with the assembled sql

过去多啦不再A梦

Oh, it turns out I forgot to upload the file on the update server!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template