Vasil 71 Report post Posted January 8, 2017 Hello,right now i am creating some new system that works with Lua-SQL,i am really not good in SQL or making my own SQL Queries so please can anyone reply in this topic an SQL Query that Select an Account IP? Thanks in Advance Quote Share this post Link to post Share on other sites
Guest Report post Posted January 8, 2017 SELECT column FROM table WHERE condition; ... SELECT last_ip FROM GameDB.dbo.account WHERE act_name = "Vasil"; Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted January 13, 2017 Get IP address by character name: SELECT a.last_ip FROM GameDB.dbo.account AS a LEFT join GameDB.dbo.character AS c ON (a.act_id = c.act_id) WHERE c.cha_name = 'Vector' or SELECT last_ip FROM GameDB.dbo.account WHERE act_id IN (SELECT act_id FROM GameDB.dbo.character WHERE cha_name = 'Vector') similar by character id, but instead of "WHERE cha_name = '...'" use "WHERE cha_id = ID" Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites