0
IN statement
what does IN statement does, can someone explain with example?
2 Answers
+ 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
0
Thankyou sneeze