![]() ![]() ![]() The IN operator is used to compare a value to a list of literal values that have been specified. The EXISTS operator is used to search for the presence of a row in a specified table that meets a certain criterion. The BETWEEN operator is used to search for values that are within a set of values, given the minimum value and the maximum value. The ANY operator is used to compare a value to any applicable value in the list as per the condition. The AND operator allows the existence of multiple conditions in an SQL statement's WHERE clause. The ALL operator is used to compare a value to all values in another value set. Here is a list of all the logical operators available in SQL. Multiplies values on either side of the operator.ĭivides left hand operand by right hand operand.ĭivides left hand operand by right hand operand and returns remainder.Ĭhecks if the values of two operands are equal or not, if yes then condition becomes true.Ĭhecks if the values of two operands are equal or not, if values are not equal then condition becomes true.Ĭhecks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.Ĭhecks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.Ĭhecks if the value of left operand is not greater than the value of right operand, if yes then condition becomes true. ![]() Subtracts right hand operand from left hand operand. These Operators are used to specify conditions in an SQL statement and to serve as conjunctions for multiple conditions in a statement.Īssume 'variable a' holds 10 and 'variable b' holds 20, then −Īdds values on either side of the operator. An operator is a reserved word or a character used primarily in an SQL statement's WHERE clause to perform operation(s), such as comparisons and arithmetic operations. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |