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)"  
< P>
  .... WHERE ID in (3, 9, 100, ...)  
< / Div>

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -