Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.53 KB | None | 0 0
  1. # 1. все слоты
  2. select
  3. es.*,
  4. it.name item_type_name
  5. from equipmentslot es
  6. join itemtype it on it.id = es.item_type_id
  7.  
  8. # 2. все слоты всех игроков персонажа
  9. select pes.* from PlayerEquipmentSlot pes
  10. join CharacterPlayer cp on cp.player_id = pes.player_id
  11. where cp.character_id = 1;
  12.  
  13. # 3. все предметы всех игроков персонажа
  14. select ci.id character_item_id, i.*, ci.durability_spend
  15. from characteritem ci
  16. join item i on i.id = ci.item_id
  17. where ci.character_id = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement