abs

英[æbz]

abbr.acrylonitrile-butadiene-styrene acrylonitrile-butadiene-styrene;absence absence;absorption absorption;absorb (ent) absorb

SQLite ABS function syntax

Function:SQLite ABS function returns the absolute value of the numeric parameter.

Syntax: sqlite> SELECT abs(value);

SQLite ABS function example

实例:

sqlite> SELECT abs(5), abs(-15), abs(NULL), abs(0), abs("ABC");


上面的 SQLite SQL 语句将产生以下结果:

abs(5)      abs(-15)    abs(NULL)   abs(0)      abs("ABC")
----------  ----------  ----------  ----------  ----------
5           15                      0           0.0