MaCH repo
This commit is contained in:
8
07_roundest_pokemon_htmx/vote.sql
Normal file
8
07_roundest_pokemon_htmx/vote.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
begin transaction;
|
||||
update pokemons
|
||||
set wins = wins + 1
|
||||
where id = {{winner}};
|
||||
update pokemons
|
||||
set loses = loses + 1
|
||||
where id = {{loser}};
|
||||
commit;
|
||||
Reference in New Issue
Block a user