MySQL Forums
Forum List  »  PHP

where statement with OR matching placeholder
Posted by: Paul Maher
Date: August 23, 2022 06:45PM

Hello,

what is correct syntax for matching either one of two values to a single URL parameter using placeholder with OR in WHERE clause?

WHERE (col1 = ? OR col2 = ?)

WHERE (col1 OR col2) = ?

thanks

Options: ReplyQuote


Subject
Written By
Posted
where statement with OR matching placeholder
August 23, 2022 06:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.