-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSavePlayer.sql
33 lines (31 loc) · 952 Bytes
/
SavePlayer.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CREATE PROCEDURE `SavePlayer2`(
id int,
dexterity int,
strength int,
karma int,
wisdom int,
technical int,
spirit int,
rage int,
vithealth int,
vitarmor int,
munition int,
playersbought int,
playerpoints int
)
BEGIN
update characters_player a
set a.dexterity = dexterity,
a.strength = strength,
a.karma = karma,
a.wisdom = wisdom,
a.technical = technical,
a.spirit = spirit,
a.rage = rage,
a.vithealth = vithealth,
a.vitarmor = vitarmor,
a.munition = munition,
a.playersbought = playersbought,
a.playerpoints = playerpoints
where a.character_id = id;
END