mysql errors. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mysql errors. (
/showthread.php?tid=495015)
mysql errors. -
audriuxxx - 15.02.2014
Hi,
How to fix that errors:
Code:
[ERROR] CMySQLQuery::Execute[] - (error #1062) Duplicate entry '1' for key 'PRIMARY'
[ERROR] CMySQLQuery::Execute[] - (error #1062) Duplicate entry '3' for key 'PRIMARY'
Re: mysql errors. -
Vince - 15.02.2014
Simple, don't try to insert something that's already there. If you require it, use
PHP Code:
ON DUPLICATE KEY UPDATE