0% found this document useful (0 votes)
41 views3 pages

Operators PDF

The document discusses different types of operators in T-SQL including arithmetic, bitwise, comparison, compound, and logical operators. It provides examples of common operators like addition, subtraction, equality, AND, OR and describes their basic meanings. Resources are listed for further information on T-SQL operators.

Uploaded by

Maha Lakshmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Operators PDF

The document discusses different types of operators in T-SQL including arithmetic, bitwise, comparison, compound, and logical operators. It provides examples of common operators like addition, subtraction, equality, AND, OR and describes their basic meanings. Resources are listed for further information on T-SQL operators.

Uploaded by

Maha Lakshmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

T-SQL Operators

www.tsql.info

Operators
Arithmetic
Bitwise
Comparison
Compound
Logical

Arithmetic
Operator Meaning
+ Add
- Subtract
* Multiply
/ Divide
% Modulo

Bitwise
Operator Meaning
& Bitwise AND
| Bitwise OR
^ Bitwise exclusive OR
Comparison
Operator Meaning
= Equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
<> Not equal to

Compound
Operator Meaning
+= Add Equals
-= Subtract Equals
*= Multiply Equals
/= Divide Equals
%= Modulo Equals
&= Bitwise AND Equals
^-= Bitwise Exclusive Equals
|*= Bitwise OR Equals

Logical
Operator Meaning
ALL TRUE if all of a set of comparisons are TRUE.
AND TRUE if both expressions are TRUE.
TRUE if any one of a set of comparisons are
ANY
TRUE.
TRUE if the operand is within the range of
BETWEEN
comparisons.
EXISTS TRUE if a subquery contains any rows.
TRUE if the operand is equal to one of a list of
IN
expressions.
LIKE TRUE if the operand matches a pattern.
NOT Reverses the value of any other operator.
OR TRUE if either expression is TRUE.
SOME TRUE if some of a set of comparisons are TRUE.

Resources:
www.tsql.info/operators/operators.php

You might also like