sql - Mysql - Multiple OR condition -


I am surprised that it is possible to transfer this code

  SELECT foo from the bar WHERE Baz = 3 or falcon = 4 or falcon = 5  

in something like this

  Choose where foo where falcon = 3,4,5 Use the   

IN operator.

IN operator allows you to specify more than one value in the WHERE section.

Query

  Select the bar foo where to baz IN (3,4,5);  

Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

Send innerHTML text in URL in JSP -