![]() |
Combine a SELECT and an UPDATE?
I'd like to NULL user signatures which contain [img] tags for "regular users". I have a query:
Code:
SELECT u.userid, u.username, t. * FROM usertextfield t Is there a way to combine an UPDATE with the results on this query without writing a script? UPDATE Well, after playing around I finally got this to work: Code:
update user,usertextfield set usertextfield.signature=NULL where user.userid=usertextfield.userid AND usertextfield.signature LIKE '%[img]%' AND user.usergroupid=2; |
All times are GMT. The time now is 11:07 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:
|