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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -