Angela Morris
Fri 3rd Mar '06, 12:37am
I'm trying to update about 900 records, setting them all to usergroup 4 (Coppa status) I have the record numbers but my attempts to do am update query have failed miserably. So I tried individual row queries for updates - that worked.
update forum_user set usergroupid = 4 where userid = 13
but it won't let me do multiple rows of this.
I had previously tried update forum_user set usergroupid = 4 where id in
(select forum_user.userid from forum_user
inner join forum_userfield on
forum_user.userid = forum_userfield.userid
where forum_userfield.field5 = '') and that didn't work either.
I would like to do a variant where I update the userid fields to usergroupid = 4 with some sort of string of data -IE: 2,4,6,7,10 etc... so I can get all 900 or so records updated.
anyone have any idea how to get this to work? I'm using MySQL 4.0.25
Thanks!
update forum_user set usergroupid = 4 where userid = 13
but it won't let me do multiple rows of this.
I had previously tried update forum_user set usergroupid = 4 where id in
(select forum_user.userid from forum_user
inner join forum_userfield on
forum_user.userid = forum_userfield.userid
where forum_userfield.field5 = '') and that didn't work either.
I would like to do a variant where I update the userid fields to usergroupid = 4 with some sort of string of data -IE: 2,4,6,7,10 etc... so I can get all 900 or so records updated.
anyone have any idea how to get this to work? I'm using MySQL 4.0.25
Thanks!