SQL Err 1064
Знач!!!
Закидую НПЦ: INSERT INTO npc (id, idTemplate, name, serverSideName, title, serverSideTitle, class, collision_radius, collision_height, level, sex, type, attackrange, hp, mp, hpreg, mpreg, str, con, dex, int, wit, men, exp, sp, patk, pdef, matk, mdef, atkspd, aggro, matkspd, rhand, lhand, armor, walkspd, runspd, faction_id, faction_range, isUndead, absorb_level, absorb_type) VALUES (5004, 30080, "Clarissa", 0, "", 0, "Lockirin", "8.00", "33.00", "70", "male", "L2Teleporter", 40, 195, 164, "1,15", "1,21", 40, 1, 30, 21, 20, 25, 0, 0, 9, 19, 3, 17, 282, 0, 333, 0, 0, 0, 66, 137, "NULL", 0, 0, 0, "LAST_HIT"); Выдаёт такую ошибку: ERROR 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 'int, wit, men, exp, sp, patk, pdef, matk, mdef, atkspd, aggro, matkspd, rhand, l' at line 2 Что неправильно? Помогите плиз!!! |
Re: SQL Err 1064
Цитата:
|
Re: SQL Err 1064
Всёравно ошибка!!!
INSERT INTO npc (id, idTemplate, name, serverSideName, title, serverSideTitle, class, collision_radius, collision_height, level, sex, type, attackrange, hp, mp, hpreg, mpreg, str, con, dex, int, wit, men, exp, sp, patk, pdef, matk, mdef, atkspd, aggro, matkspd, rhand, lhand, armor, walkspd, runspd, faction_id, faction_range, isUndead, absorb_level, absorb_type) VALUES (5004, 30080, 'Clarissa', 0, '', 0, 'Lockirin', '8.00', '33.00', '70', 'male', 'L2Teleporter', 40, 195, 164, '1,15', '1,21', 40, 1, 30, 21, 20, 25, 0, 0, 9, 19, 3, 17, 282, 0, 333, 0, 0, 0, 66, 137, 'NULL', 0, 0, 0, 'LAST_HIT'); Ошибка: ERROR 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 'int, wit, men, exp, sp, patk, pdef, matk, mdef, atkspd, aggro, matkspd, rhand, l' at line 2 Без ' тоже непашет!!! |
Re: SQL Err 1064
А без кавычек пробовал?
И еще: (5004, 30080, 'Clarissa', 0, '', 0, 'Lockirin', '8.00', '33.00', '70', 'male', 'L2Teleporter', 40, 195, 164, '1,15', '1,21', 40, 1, 30, 21, 20, 25, 0, 0, 9, 19, 3, 17, 282, 0, 333, 0, 0, 0, 66, 137, 'NULL', 0, 0, 0, 'LAST_HIT'); Обрати внимание, что у тебя в запросе некоторые значения имеют вид с точкой (отметил красным), а некоторые - запятой (отметил синим). Все-таки определись, как у тебя значения в БД записаны. Если не получится - забей руками, быстрее будет. P.S. оффтоп:Развернуть ↓ |
Re: SQL Err 1064
Viget, Попробуй написать так.
Код:
('5004', '30080', 'Clarissa', '0', ' ', '0', 'Lockirin', '8.00', '33.00', '70', 'male', 'L2Teleporter', '40', '195', '164', '1.15', '1.21', '40', '1', '30', '21', '20', '25', '0', '0', '9', '19', '3', '17', '282', '0', '333', '0', '0', '0', '66', '137', 'NULL', '0', '0', '0', 'LAST_HIT'); Помог жми Спасибо |
Re: SQL Err 1064
describe npc покажи
|
Re: SQL Err 1064
UFODrivver спс большое!!! Работает.
|
Re: SQL Err 1064
Viget, Да не за что. Если что обращайся)
|
Текущее время: 01:43. Часовой пояс GMT +3. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot