A binary expression contains two operands separated by one operator
Used to perform arithmetic operators on number types.
+
Addition.-
Subtraction.*
Multiplication./
Division.%
Modulus.
=
used to check if two values are equals.!=
or<>
used to check if two values are not equals.>
used to check value greater than other value.>=
used to check if value is greater than or equals than other value<
used to check if value is less than than other value.<=
used to check if value is less than or equals than other value.<=>
Returns 1 rather than NULL if both operands are NULL, and 0 rather than NULL if one operand is NULL.
The LIKE
operator is used for searching for a specified pattern in a string.
SELECT "Git Query Language" LIKE "G%"
SELECT "Git Query Language" LIKE "%e"
SELECT "Git Query Language" LIKE "%Query%"
SELECT "10 usd" LIKE "[0-9]* usd"
The GLOB
operator is similar to LIKE
but uses the Unix file globing syntax for its wildcards. Also, GLOB
is case sensitive, unlike LIKE
.
SELECT "Git Query Language" GLOB "Git*"
||
oror
: used to calculate logical or between two booleans,&&
orand
: used to calculate logical and between two booleans,^
orxor
: used to calculate logical xor between two booleans,
|
: used to calculate bitwise or between two numbers,&
: used to calculate bitwise and between two numbers,<<
: used to calculate bitwise right shift between two numbers,>>
: used to calculate bitwise left shift between two numbers,
Used to check if value is between range start and end included
SELECT commit_count FROM branches WHERE commit_count BETWEEN 2 .. 30000
Returns true if value is null, can used with NOT
keyword to return if true if not null
SELECT 1 IS NULL
SELECT 1 IS NOT NULL
Returns true if any one or more values are equal to the argument
SELECT "One" IN ("One", "Two", "Three")