Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Interogare SQL:

 

INSERT INTO `adminmoneylog` (`id`, `text`) VALUES
(1, '[WARNING]: George12 i-a dat $100000000 la George12, Motiv: . . (1-18-2014)')

 

MySQL zice: Documentație

#1062 - Duplicate entry '1' for key 'PRIMARY'

 

 

Cand incerc sa importez sql-ul imi da aceasta eroare... ce pot face?

 

Multumesc anticipat!

1 answer to this question

Recommended Posts

  • 0
Posted

Inseamna ca mai ai un rand care are ID-ul 1. Nu poti sa ai mai multe randuri cu acelasi ID.

Poti executa interogarea asta

1 hour ago, Vlăduț97 said:

INSERT INTO `adminmoneylog` (`id`, `text`) VALUES (1, '[WARNING]: George12 i-a dat $100000000 la George12, Motiv: . . (1-18-2014)')

cu asta

INSERT INTO `adminmoneylog` (`text`) VALUES ('[WARNING]: George12 i-a dat $100000000 la George12, Motiv: . . (1-18-2014)');

 

Asta o sa atribuie automat un ID randului inserat.

  • Upvote 2
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.