23.08.2012, 18:11
Hi.
I want to run this result for all players in the table, but I don't know how to do it.
Here's the result, this works, but I only can run it for one row and this is doesn't works with multipie rows.
UPDATE players SET maths = (SELECT COUNT( winner_id) FROM maths)
This will update all data for same value in players table, and this is the problem.
I want to run this result for all players in the table, but I don't know how to do it.
Here's the result, this works, but I only can run it for one row and this is doesn't works with multipie rows.
UPDATE players SET maths = (SELECT COUNT( winner_id) FROM maths)
This will update all data for same value in players table, and this is the problem.