Jump to content
  • 0

Ajutor va rog.


Vlăduț97

Question

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!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

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.