![]() |
Need help with a query
I'm looking to write a script that will change all the IP addy's of a usergroup when run. I kinda have an idea how to do it but not 100% sure. This is what I've come up with.
UPDATE post SET ipaddress = '0.0.0.0' WHERE userid in ( SELECT post.userid FROM [user] INNER JOIN post ON user.UserID = post.userid WHERE groupid = 5 ) Would this work? |
Quote:
I also don't understand the brackets around user |
And in the subquery select it would be user.userid, not post.userid. Out of my had it is also usergroupid and not groupid.
|
Thanks for the help. The brackets were because I was running the query in Access to test.
|
All times are GMT. The time now is 08:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|