C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
SQL SELECT INSQL IN is an operator used in a SQL query to help reduce the need to use multiple SQL "OR" conditions. It is used in SELECT, INSERT, UPDATE or DELETE statement. Advantage of SQL SELECT INIt minimizes the use of SQL OR operator. Let's see the syntax for SQL IN: Expression IN (value 1, value 2 ... value n); Take an example with character values. SELECT * FROM students WHERE students_name IN ( Amit , Raghav, Rajeev) Let's take another example with numeric values. SELECT * FROM marks WHERE roll_no IN (001, 023, 024);
Next TopicSQL Select From Multiple Tables
|