sql - Multiple OR Clauses in MySQL -
I am trying to draw content where id = 3 or id = 9 or id = 100 ... keep in mind, I have some of these hundred ids
What is the most effective way of writing my query?
$ sql = "Select from the cast name WHERE (id = 3 or id = 9 or .... id-100)"
.... WHERE ID in (3, 9, 100, ...)
< / Div>
Comments
Post a Comment