"OR" SQL Condition in Usermodel

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
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"
 
You'll likely have to write it manually. You may get better performance by using 2 queries (or a union), due to index usage.
 
Top Bottom