Advertisement
Guest User

SqlCommand.xml

a guest
Oct 20th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.64 KB | None | 0 0
  1. <SqlCommands>
  2.     <!-- ACCOUNT -->
  3.     <SqlCommand name="GetAccountId">SELECT A.Id FROM account A WHERE A.Username = VAR1 AND A.Password = VAR2;</SqlCommand> 
  4.     <SqlCommand name="GetAccountHeroes">SELECT A.Name, A.Gender, A.Race, A.World, A.Location, A.Level, A.Position_X, A.Position_Y, A.Position_Z, A.Orientation_W, A.Orientation_X, A.Orientation_Y, A.Orientation_Z FROM hero A WHERE A.Account_Id = VAR1;</SqlCommand>
  5.    
  6.     <!-- LOCATION -->
  7.     <SqlCommand name="CreateLocation">INSERT INTO location (World, Name, Scene) VALUES(VARIABLES);</SqlCommand>
  8.    
  9.     <SqlCommand name="GetLocationScene">SELECT A.Scene FROM location A WHERE A.Name = VAR2;</SqlCommand>
  10.     <SqlCommand name="UpdateLocationScene">UPDATE location AS A SET A.Scene = VAR1 WHERE A.Name = VAR2;</SqlCommand>
  11.    
  12.     <!-- HERO -->
  13.     <SqlCommand name="CreateHero">INSERT INTO hero (Name, Gender, Race, World, Location, Level, Position_X, Position_Y, Position_Z, Orientation_W, Orientation_X, Orientation_Y, Orientation_Z, Account_Id) VALUES(VARIABLES);</SqlCommand>
  14.     <!-- CAREER SKILL -->
  15.     <SqlCommand name="GetAllCareerSkills">SELECT  hero.*, career.*, skills.* FROM hero RIGHT JOIN career ON hero.Id = career.hero LEFT JOIN skills ON hero.Id = skills.hero WHERE hero.Name = 'VAR1'</SqlCommand>
  16.     <!-- TRAITS-->
  17.         <SqlCommand name="GetAllTraits">SELECT traits.*, hero.* FROM hero RIGHT JOIN traits ON hero.Id = traits.hero WHERE hero.Name = 'VAR1'</SqlCommand>
  18.     <!-- QUESTS-->
  19.     <SqlCommand name="GetAllQuests">SELECT hero.*, quest.*, questtask.* FROM hero RIGHT JOIN quest ON hero.Id = quest.hero LEFT JOIN questtask ON quest.Idx = questtask.quest WHERE hero.Name = 'VAR1'</SqlCommand>
  20.    
  21. </SqlCommands>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement