Jump to content

MySQL logic operator for combination of && and or.


Eggzorcist

Recommended Posts

Hi there,

 

I was wondering if there is a method or logical operator to have a combination of && and or operators. so I want to be either friend1 = $user && or friend2 = $user. How is this done in SQL? Checked the mysql manual but not sure if it's that straight forward.

 

Thanks

Oh yea, sorry. Been a long day. I think I've accomplished my goal with an or statement. I just wanted an or but also the data set might satisfy both requirement and would like to have both rows. Is that done with or?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.