SQL IN Operator

SQL IN Operator is used in SQL statements with in WHERE clause to specify multiple values in SQL IN Operator.

SQL IN Operator Code Syntax :

[sql] SELECT column_name(s) FROM table_name
WHERE column_name IN (value1,value2,…);

Sample code for SQL IN Operator :

In this SQL statements, results will be retrieved based on the names column if it matches name1 & name2.

WHERE Name IN (‘name1′,’name2’);

Vivek Vengala

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.