abs

abs

abs介绍

abs(expr) 函数返回数值或interval的绝对值

Examples:

> SELECT abs(-1);
 1
> SELECT abs(INTERVAL -'1-1' YEAR TO MONTH);
 1-1

Since: 1.4.0