I use this to update (add points) rows which mgroup is 15
UPDATE ibf_members SET points = points + 500 WHERE mgroup = 15
What can I use to update (add points + 500) for rows which has its id as 5, 7, 10, 11, 16, 25 and also has mgroup as 15?
You can use the
INclause for this, which is easier to read (and possibly more efficient?) than building a giantORlist. Try something like: