• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

"OR" SQL Condition in Usermodel

R

ragtek

Guest
#1
i haven't found a way, to include a OR condition into the model:(
Is it possible to get all users matching this pattern:

where username = "FOO"
OR
email = "BAZ"
 

Mike

XenForo developer
Staff member
#2
You'll likely have to write it manually. You may get better performance by using 2 queries (or a union), due to index usage.