SQL Basic
SQL Advanced
SQL Functions
| SQL In |
The IN OperatorThe IN operator allows you to specify multiple values in a WHERE clause. SQL IN Syntax
IN Operator ExampleThe "Persons" table:
Now we want to select the persons with a last name equal to "Hansen" or "Pettersen" from the table above. We use the following SELECT statement:
The result-set will look like this:
|
SQL In