0

IN statement

what does IN statement does, can someone explain with example?

20th Oct 2017, 6:45 PM
Mohammad Fahad Ullah Khan
Mohammad Fahad Ullah Khan - avatar
2 Antworten
+ 4
IN tells you whether the given variable is part of a given subset. SELECT * FROM suppliers WHERE supplier_name IN ('Microsoft', 'Oracle', 'Flowers Foods'); It is a short cut and the same as. SELECT * FROM suppliers WHERE supplier_name = 'Microsoft' OR supplier_name = 'Oracle' OR supplier_name = 'Flowers Foods'; https://www.techonthenet.com/sql/in.php
20th Oct 2017, 7:21 PM
sneeze
sneeze - avatar
0
Thankyou sneeze
21st Oct 2017, 12:12 AM
Mohammad Fahad Ullah Khan
Mohammad Fahad Ullah Khan - avatar