The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help with a mySQL query
I'm trying to update Thread Subscriptions so nobody that registered with an e-mail address from domainxyz.com gets e-mail updates.
Something like: Code:
UPDATE " . TABLE_PREFIX . "subscribethread SET emailupdate = 0 WHERE (emailupdate > 0) AND ????????? I'm looking to compare it like this: Code:
AND (email LIKE "%domainxyz.com") Any help would be appreciated. Thanks, James |
#2
|
|||
|
|||
This should work:
Code:
"UPDATE " . TABLE_PREFIX . "subscribethread as subscribethread LEFT JOIN " . TABLE_PREFIX . "user as user ON(subscribethread.userid=user.userid) SET emailupdate = 0 WHERE (emailupdate > 0) AND email LIKE '%domainxyz.com' " |
2 благодарности(ей) от: | ||
RichieBoy67, TheLastSuperman |
#3
|
|||
|
|||
That works great.
Thank you very much! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|