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

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -