Jump to content
  • 0

Proglema la tabela *bizz* la inportare.


S1meD.

Question

Salut SA-MP Romania vreu sa ma ajutati cu o problema care am intimpinato.

 

 

Cind importa baza de date imi zice asta

 

 

-- Salvarea datelor din tabel `bizz`
--
INSERT INTO `bizz` (`ID`, `Owned`, `Owner`, `Message`, `EntranceX`, `EntranceY`, `EntranceZ`, `ExitX`, `ExitY`, `ExitZ`, `LevelNeeded`, `BuyPrice`, `EntranceCost`, `Till`, `Locked`, `Interior`, `Products`, `MaxProducts`, `PriceProd`, `Virtual`) VALUES
(0, 0, 'T45', 'ReyRey Bank', 1462.49, -1012.63, 26.8438, 2306, -16, 27, 10, 10000000, 5000, 9970000, 0, 0, 7930, 10000, 100, 0),
(0, 0, 'Dreamcool', 'Gun Shop Los Santos', 1791.52, -1164.86, 23.8281, 316, -142, 1000, 9, 7000000, 5000, 0, 0, 7, 6734, 10000, 100, 0),
(0, 0, '[ZEW]TaNZer.', 'Triad Head.', 1836.09, -1682.5, 13.3624, 493.46, -24.0736, 1000.68, 4, 100000, 5000, 886213, 0, 17, 9542, 10000, 100, 0),
(0, 0, 'The State', 'La Carciuma [/drink]', 2129.86, -1761.46, 13.5625, -228.27, 1401.07, 27.7656, 3, 100000, 5000, 40235, 0, 18, 9642, 10000, 100, 0),
(0, 0, 'The State', '*** Vicious Strip Club ***', 2421.41, -1220.3, 25.4937, 1204.83, -13.4011, 1000.92, 3, 3000000, 5000, 75332, 0, 2, 976[...]

 

MySQL zice: dot.gif

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

 

 

Va rog daca puteti sa ma ajutati.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Buna seara stimate.

Pentru a nu va oferi multe explicatii si lectii privind lucrul cu platforma MySQL   in acest caz (un text de minim 30-40 randuri), am sa va sugerez urmatoarea metoda de solutionare a problemei dumneavoastra:

 

 

Modificati INSERT INTO in REPLACE INTO

Edited by ARTIST

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

  • 0

Am facut ceai zis inport baza de date dar cind deschid serverul numi citesste gm-ul

 

Incercati stimate atunci in felul urmator:

 

INSERT INTO `bizz` (`ID`, `Owned`, `Owner`, `Message`, `EntranceX`, `EntranceY`, `EntranceZ`, `ExitX`, `ExitY`, `ExitZ`, `LevelNeeded`, `BuyPrice`, `EntranceCost`, `Till`, `Locked`, `Interior`, `Products`, `MaxProducts`, `PriceProd`, `Virtual`) VALUES

(1, 0, 'T45', 'ReyRey Bank', 1462.49, -1012.63, 26.8438, 2306, -16, 27, 10, 10000000, 5000, 9970000, 0, 0, 7930, 10000, 100, 0),

(2, 0, 'Dreamcool', 'Gun Shop Los Santos', 1791.52, -1164.86, 23.8281, 316, -142, 1000, 9, 7000000, 5000, 0, 0, 7, 6734, 10000, 100, 0),

(3, 0, '[ZEW]TaNZer.', 'Triad Head.', 1836.09, -1682.5, 13.3624, 493.46, -24.0736, 1000.68, 4, 100000, 5000, 886213, 0, 17, 9542, 10000, 100, 0),

(4, 0, 'The State', 'La Carciuma [/drink]', 2129.86, -1761.46, 13.5625, -228.27, 1401.07, 27.7656, 3, 100000, 5000, 40235, 0, 18, 9642, 10000, 100, 0),

(5, 0, 'The State', '*** Vicious Strip Club ***', 2421.41, -1220.3, 25.4937, 1204.83, -13.4011, 1000.92, 3, 3000000, 5000, 75332, 0, 2, 976[...]

 

 

Adica in ordine crescatoare, de la 1 la X (pana la ultimul biz) modificati toate ID-urile.

 

P.S "Pentru campul "ID" (ale tebelului cu toate bizurile) in Baza dumneavoastra de Date folositi auto_increment"

Edited by ARTIST

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.