mirror of
https://github.com/gowthamrajk/SQL-Tutorials.git
synced 2026-04-30 22:13:56 +07:00
Update README.md
This commit is contained in:
@@ -447,3 +447,55 @@ Following are some of the most commonly used constraints available in SQL −
|
|||||||
|
|
||||||
## SQL Logical Operators ❗
|
## SQL Logical Operators ❗
|
||||||
|
|
||||||
|
### ALL
|
||||||
|
- The ALL operator is used to compare a value to all values in another value set.
|
||||||
|
|
||||||
|
2
|
||||||
|
AND
|
||||||
|
|
||||||
|
The AND operator allows the existence of multiple conditions in an SQL statement's WHERE clause.
|
||||||
|
|
||||||
|
3
|
||||||
|
ANY
|
||||||
|
|
||||||
|
The ANY operator is used to compare a value to any applicable value in the list as per the condition.
|
||||||
|
|
||||||
|
4
|
||||||
|
BETWEEN
|
||||||
|
|
||||||
|
The BETWEEN operator is used to search for values that are within a set of values, given the minimum value and the maximum value.
|
||||||
|
|
||||||
|
5
|
||||||
|
EXISTS
|
||||||
|
|
||||||
|
The EXISTS operator is used to search for the presence of a row in a specified table that meets a certain criterion.
|
||||||
|
|
||||||
|
6
|
||||||
|
IN
|
||||||
|
|
||||||
|
The IN operator is used to compare a value to a list of literal values that have been specified.
|
||||||
|
|
||||||
|
7
|
||||||
|
LIKE
|
||||||
|
|
||||||
|
The LIKE operator is used to compare a value to similar values using wildcard operators.
|
||||||
|
|
||||||
|
8
|
||||||
|
NOT
|
||||||
|
|
||||||
|
The NOT operator reverses the meaning of the logical operator with which it is used. Eg: NOT EXISTS, NOT BETWEEN, NOT IN, etc. This is a negate operator.
|
||||||
|
|
||||||
|
9
|
||||||
|
OR
|
||||||
|
|
||||||
|
The OR operator is used to combine multiple conditions in an SQL statement's WHERE clause.
|
||||||
|
|
||||||
|
10
|
||||||
|
IS NULL
|
||||||
|
|
||||||
|
The NULL operator is used to compare a value with a NULL value.
|
||||||
|
|
||||||
|
11
|
||||||
|
UNIQUE
|
||||||
|
|
||||||
|
The UNIQUE operator searches every row of a specified table for uniqueness (no duplicates).
|
||||||
|
|||||||
Reference in New Issue
Block a user