MySQL: Update all values in table from another table
#8

Quote:
Originally Posted by AndreT
View Post
UPDATE players SET maths=(SELECT COUNT(winner_id) FROM maths WHERE maths.winner_id=players.id)
What about this one?
I'm idiot.. LoL
Thanks!

Very nice, this works!

I now searched for while loop in mysql, and other shits, but this solved my problem.
(I was gave rep for you before few monts, so i don't know now give for this )
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)