Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Lineage II (https://forum.zone-game.info/forumdisplay.php?f=34)
-   -   Не получается залить SQL (https://forum.zone-game.info/showthread.php?t=8184)

[STIGMATED] 23.05.2010 10:02

Не получается залить SQL
 
Прилагаю вод двух строк с файла *.sql
Код:

  (9416, 'Dynasty Plate', 'chest', 'true', 'heavy', 7620, 's', 0, -1, 219, 0, 0, 0, 1000, 'true', 'true', 'true', 'true', 0, 0);
  (9421, 'Dynasty Gaiters', 'legs', 'true', 'heavy', 3260, 's', 0, -1, 137, 0, 0, 0, 1000, 'true', 'true', 'true', 'true', 0, 0);

Сборка Scoria, при заливке в базу заливается только 1-я строка, потом выбивает ошибка
Код:

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '9421, 'Dynasty Gaiters', 'legs', 'true', 'heavy', 3260, 's', 0, -1, 137, 0, 0, 0' at line 1
[Err] (9421, 'Dynasty Gaiters', 'legs', 'true', 'heavy', 3260, 's', 0, -1, 137, 0, 0, 0, 1000, 'true', 'true', 'true', 'true', 0, 0);
[Msg] Finished - Unsuccessfully


Советовали залить только вторую строку, таже история.
Буду очень признателен за помощь..

Joker 23.05.2010 10:20

Re: Не получается залить SQL
 
ты лучше дай структуру таблички армор.

[STIGMATED] 23.05.2010 10:25

Re: Не получается залить SQL
 
Так как написал, что первая строка заливается, то можно понять структуру таблица...
Цитата:

-- ----------------------------
-- Table structure for armor
-- ----------------------------
CREATE TABLE `armor` (
`item_id` int(11) NOT NULL DEFAULT '0',
`name` varchar(70) DEFAULT NULL,
`bodypart` varchar(15) NOT NULL DEFAULT '',
`crystallizable` varchar(5) NOT NULL DEFAULT '',
`armor_type` varchar(5) NOT NULL DEFAULT '',
`weight` int(5) NOT NULL DEFAULT '0',
`crystal_type` enum('none','d','c','b','a','s') NOT NULL DEFAULT 'none',
`avoid_modify` int(1) NOT NULL DEFAULT '0',
`duration` int(3) NOT NULL DEFAULT '0',
`p_def` int(3) NOT NULL DEFAULT '0',
`m_def` int(2) NOT NULL DEFAULT '0',
`mp_bonus` int(3) NOT NULL DEFAULT '0',
`price` int(11) NOT NULL DEFAULT '0',
`crystal_count` int(4) DEFAULT NULL,
`sellable` varchar(5) DEFAULT NULL,
`dropable` varchar(5) DEFAULT NULL,
`destroyable` varchar(5) DEFAULT NULL,
`tradeable` varchar(5) DEFAULT NULL,
`item_skill_id` decimal(11,0) NOT NULL DEFAULT '0',
`item_skill_lvl` decimal(11,0) NOT NULL DEFAULT '0',
PRIMARY KEY (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Joker 23.05.2010 12:28

Re: Не получается залить SQL
 
Код:

INSERT INTO armor VALUES (9421, 'Dynasty Gaiters', 'legs', 'true', 'heavy', 3260, 's', 0, -1, 137, 0, 0, 0, 1000, 'true', 'true', 'true', 'true', 0, 0);

[STIGMATED] 23.05.2010 12:30

Re: Не получается залить SQL
 
Я так понял, ты думаешь что твой код должен залится?
нет...
Цитата:

[Err] 1136 - Column count doesn't match value count at row 1
[Err] INSERT INTO npc VALUES (9421, 'Dynasty Gaiters', 'legs', 'true', 'heavy', 3260, 's', 0, -1, 137, 0, 0, 0, 1000, 'true', 'true', 'true', 'true', 0, 0);
[Msg] Finished - Unsuccessfully

Joker 23.05.2010 12:31

Re: Не получается залить SQL
 
сори исправил свой пост вместо armor написал npc

[STIGMATED] 23.05.2010 12:35

Re: Не получается залить SQL
 
Так, прописало, конкретнее, что делал?

Joker 23.05.2010 12:37

Re: Не получается залить SQL
 
PHP код:

INSERT INTO armor VALUES 

это подставляй к своим значениям и всё у тебя будет норм


Текущее время: 13:20. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot