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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -