special operators in database

6
1 SPECIAL OPERATORS

Upload: rosie-jane-enomar

Post on 26-May-2015

597 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Special operators in Database

1

SPECIAL OPERATORS

Page 2: Special operators in Database

2

BETWEEN…AND operator

Determines whether the value of an

expression falls within a specified

range of values.

Special Operators

Syntax:

expr [NOT] BETWEEN value1 AND value2

Page 3: Special operators in Database

3

IN operator

Determines whether the value of an

expression is equal to any of several

values in a specified list.

Syntax:

expr [NOT] IN (value1, value2, …)

Special Operators

Page 4: Special operators in Database

4

IS NULL operator

Checks for missing data or null

values.

Syntax:

expr IS [NOT] NULL

Special Operators

Page 5: Special operators in Database

5

LIKE operator

Used in conjunction with wildcard

characters to match character string

patterns.

Syntax:

expr [NOT] LIKE ‘string pattern’

Special Operators

Page 6: Special operators in Database

6

Wildcard Characters

% - used to match zero or

more characters.

_ - used to match a single

character.

Special Operators