[sql] Не добавляет в базу!
Прошу помоч мне разобратьса в чём ошибка при добавке в базу!
хочу подобавлять на сервер новых вещей, и немогу....
Смотрите скрин:
— Уважаемый
Все просто - количество строк в добавляемом тобой SQL файле не соответствует количеству строк в твоей базе данных.
Решение: добавить новые или удалить лишние значения.
неправильный sql запрос...стукнеш потом в асю мне, переделаю...но гдет в 10 вечера...
INSERT INTO `armor` VALUES ('9209', 'Dynasty Breast Plate', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9210', 'Dynasty Breast Plate - Shield Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9211', 'Dynasty Breast Plate - Weapon Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9212', 'Dynasty Breast Plate - Force Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9213', 'Dynasty Breast Plate - Bard', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9214', 'Dynasty Leather Armor', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9215', 'Dynasty Leather Armor - Dagger Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9216', 'Dynasty Leather Armor - Bow Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9217', 'Dynasty Leather Armor - Force Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9218', 'Dynasty Leather Armor - Weapon Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9219', 'Dynasty Leather Armor - Enchanter', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9220', 'Dynasty Leather Armor - Summoner', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9221', 'Dynasty Tunic', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9222', 'Dynasty Tunic - Healer', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9223', 'Dynasty Tunic - Enchanter', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9224', 'Dynasty Tunic - Summoner', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9225', 'Dynasty Tunic - Wizard', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9226', 'Dynasty Gaiter', 'legs', 'true', 'heavy', '3260', 'wood', 's', '0', '-1', '141', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9227', 'Dynasty Helmet', 'head', 'true', 'heavy', '4820', 'wood', 's', '0', '-1', '92', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9228', 'Dynasty Gauntlet - Heavy Armor', 'gloves', 'true', 'heavy', '4770', 'wood', 's', '0', '-1', '61', '0', '0', '20300', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9229', 'Dynasty Boots - Heavy Armor', 'feet', 'true', 'heavy', '4970', 'wood', 's', '0', '-1', '61', '0', '0', '31800', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9230', 'Dynasty Leather Leggings', 'legs', 'true', 'light', '4720', 'wood', 's', '0', '-1', '106', '0', '0', '36900', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9231', 'Dynasty Leather Helmet', 'head', 'true', 'light', '1740', 'wood', 's', '0', '-1', '92', '0', '0', '92', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9232', 'Dynasty Leather Gloves - Light Armor', 'gloves', 'true', 'light', '1730', 'wood', 's', '0', '-1', '61', '0', '0', '1520', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9233', 'Dynasty Leather Boots - Light Armor', 'feet', 'true', 'light', '1700', 'wood', 's', '0', '-1', '61', '0', '0', '4970', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9234', 'Dynasty Stockings', 'legs', 'true', 'magic', '4020', 'wood', 's', '0', '-1', '71', '0', '370', '19900', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9235', 'Dynasty Circlet', 'head', 'true', 'magic', '1610', 'wood', 's', '0', '-1', '92', '0', '0', '23000', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9236', 'Dynasty Gloves - Robe', 'gloves', 'true', 'magic', '3960', 'wood', 's', '0', '-1', '61', '0', '0', '30700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9237', 'Dynasty Shoes - Robe', 'feet', 'true', 'magic', '1320', 'wood', 's', '0', '-1', '61', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
— Уважаемый
Schumi: Все просто - количество строк в добавляемом тобой SQL файле не соответствует количеству строк в твоей базе данных.
Решение: добавить новые или удалить лишние значения.
Нет не строк, а столбцов) Количество столбцов в запросе не совпадает с кол-вом столбцов в бд, т.е в запросе либо нету значения для какого либо столбца, или их слишком много, правь вручную, проще выйдет)
Crash_Moon: Нет не строк, а столбцов) Количество столбцов в запросе не совпадает с кол-вом столбцов в бд, т.е в запросе либо нету значения для какого либо столбца, или их слишком много, правь вручную, проще выйдет)
сенкс)) прост думал сначала как прально написать....в итоге все равно ошибся))
Schumi: сенкс)) прост думал сначала как прально написать....в итоге все равно ошибся))
Бывает...) Хотя ты все правильно написал кроме строк, хотя их можно представить и в виде строк, одна каша)
на пробуй ska
INSERT INTO `armor` VALUES ('9210', 'Dynasty Breast Plate - Shield Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9211', 'Dynasty Breast Plate - Weapon Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9212', 'Dynasty Breast Plate - Force Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9213', 'Dynasty Breast Plate - Bard', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9214', 'Dynasty Leather Armor', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9215', 'Dynasty Leather Armor - Dagger Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9216', 'Dynasty Leather Armor - Bow Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9217', 'Dynasty Leather Armor - Force Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9218', 'Dynasty Leather Armor - Weapon Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9219', 'Dynasty Leather Armor - Enchanter', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9220', 'Dynasty Leather Armor - Summoner', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9221', 'Dynasty Tunic', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9222', 'Dynasty Tunic - Healer', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9223', 'Dynasty Tunic - Enchanter', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9224', 'Dynasty Tunic - Summoner', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9225', 'Dynasty Tunic - Wizard', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9226', 'Dynasty Gaiter', 'legs', 'true', 'heavy', '3260', 'wood', 's', '0', '-1', '141', '0', '0', '0', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9227', 'Dynasty Helmet', 'head', 'true', 'heavy', '4820', 'wood', 's', '0', '-1', '92', '0', '0', '0', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9228', 'Dynasty Gauntlet - Heavy Armor', 'gloves', 'true', 'heavy', '4770', 'wood', 's', '0', '-1', '61', '0', '0', '20300', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9229', 'Dynasty Boots - Heavy Armor', 'feet', 'true', 'heavy', '4970', 'wood', 's', '0', '-1', '61', '0', '0', '31800', '0', 'true','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9230', 'Dynasty Leather Leggings', 'legs', 'true', 'light', '4720', 'wood', 's', '0', '-1', '106', '0', '0', '36900', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9231', 'Dynasty Leather Helmet', 'head', 'true', 'light', '1740', 'wood', 's', '0', '-1', '92', '0', '0', '92', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9232', 'Dynasty Leather Gloves - Light Armor', 'gloves', 'true', 'light', '1730', 'wood', 's', '0', '-1', '61', '0', '0', '1520', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9233', 'Dynasty Leather Boots - Light Armor', 'feet', 'true', 'light', '1700', 'wood', 's', '0', '-1', '61', '0', '0', '4970', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9234', 'Dynasty Stockings', 'legs', 'true', 'magic', '4020', 'wood', 's', '0', '-1', '71', '0', '370', '19900', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9235', 'Dynasty Circlet', 'head', 'true', 'magic', '1610', 'wood', 's', '0', '-1', '92', '0', '0', '23000', '0','true','true','true','true',''),
INSERT INTO `armor` VALUES ('9236', 'Dynasty Gloves - Robe', 'gloves', 'true', 'magic', '3960', 'wood', 's', '0', '-1', '61', '0', '0', '30700', '0', 'true','true','true','true',''),
INSERT INTO `armor` VALUES ('9237', 'Dynasty Shoes - Robe', 'feet', 'true', 'magic', '1320', 'wood', 's', '0', '-1', '61', '0', '0', '0', '0','true','true','true','true',''),
ой там ошыбся малёха, вот держи 100% робочий)
INSERT INTO `armor` VALUES ('9210', '9210','Dynasty Breast Plate - Shield Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9211', '9211','Dynasty Breast Plate - Weapon Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9212', '9212','Dynasty Breast Plate - Force Master', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9213', '9213','Dynasty Breast Plate - Bard', 'chest', 'true', 'heavy', '7620', 'wood', 's', '0', '-1', '226', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9214', '9214','Dynasty Leather Armor', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9215', '9215','Dynasty Leather Armor - Dagger Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9216', '9216','Dynasty Leather Armor - Bow Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9217', '9217','Dynasty Leather Armor - Force Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9218', '9218','Dynasty Leather Armor - Weapon Master', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9219', '9219','Dynasty Leather Armor - Enchanter', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9220', '9220','Dynasty Leather Armor - Summoner', 'chest', 'true', 'light', '6920', 'wood', 's', '0', '-1', '170', '0', '0', '49200', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9221', '9221','Dynasty Tunic', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9222', '9222','Dynasty Tunic - Healer', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9223', '9223','Dynasty Tunic - Enchanter', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9224', '9224','Dynasty Tunic - Summoner', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9225', '9225','Dynasty Tunic - Wizard', 'chest', 'true', 'magic', '1680', 'wood', 's', '0', '-1', '113', '0', '592', '12700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9226', '9226','Dynasty Gaiter', 'legs', 'true', 'heavy', '3260', 'wood', 's', '0', '-1', '141', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9227', '9227','Dynasty Helmet', 'head', 'true', 'heavy', '4820', 'wood', 's', '0', '-1', '92', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9228', '9228','Dynasty Gauntlet - Heavy Armor', 'gloves', 'true', 'heavy', '4770', 'wood', 's', '0', '-1', '61', '0', '0', '20300', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9229', '9229','Dynasty Boots - Heavy Armor', 'feet', 'true', 'heavy', '4970', 'wood', 's', '0', '-1', '61', '0', '0', '31800', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9230', '9230','Dynasty Leather Leggings', 'legs', 'true', 'light', '4720', 'wood', 's', '0', '-1', '106', '0', '0', '36900', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9231', '9231','Dynasty Leather Helmet', 'head', 'true', 'light', '1740', 'wood', 's', '0', '-1', '92', '0', '0', '92', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9232', '9232','Dynasty Leather Gloves - Light Armor', 'gloves', 'true', 'light', '1730', 'wood', 's', '0', '-1', '61', '0', '0', '1520', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9233', '9233','Dynasty Leather Boots - Light Armor', 'feet', 'true', 'light', '1700', 'wood', 's', '0', '-1', '61', '0', '0', '4970', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9234', '9234','Dynasty Stockings', 'legs', 'true', 'magic', '4020', 'wood', 's', '0', '-1', '71', '0', '370', '19900', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9235', '9235','Dynasty Circlet', 'head', 'true', 'magic', '1610', 'wood', 's', '0', '-1', '92', '0', '0', '23000', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9236', '9236','Dynasty Gloves - Robe', 'gloves', 'true', 'magic', '3960', 'wood', 's', '0', '-1', '61', '0', '0', '30700', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `armor` VALUES ('9237', '9237','Dynasty Shoes - Robe', 'feet', 'true', 'magic', '1320', 'wood', 's', '0', '-1', '61', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');



