I'm busy doing an UPDATE / INSERT query, but here is the gist:
table PLAYERS {
player_id
game_id
team_id
position
number
}
This is supposed to happen:
I check if there is a record where
player_id = '$player_id' AND game_id = '$game_id' AND team_id = '$team_id'.
If so, the following will happen:
position = '$position' AND number = '$number'
Is there a way to do this using only the MySQL query language, without having to check PHP between requests?
source
share