Comparison functions

更新时间:
复制 MD 格式

PolarDB-X supports the following comparison functions.

FunctionDescription
COALESCE()Returns the first non-NULL expression in the argument list.
GREATEST()Returns the largest value from a list of expressions.
IN()Tests whether the specified value or field is included in a list.
ISNULL()Tests whether the expression is NULL.
LEAST()Returns the smallest value from a list of expressions.
STRCMP()Compares two strings by ASCII value. Returns 0 if s1 equals s2, 1 if s1 is greater, and -1 if s1 is less.