MySQL Forums
Forum List  »  PHP

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


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) = ?


Options: ReplyQuote

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

Sorry, only registered users may post in this forum.

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.