MySQL ABS() 绝对值函数


ABS(x) 函数返回x的绝对值,如果x为NULL则返回NULL

mysql> SELECT  ABS(-101);
+-----------+
| ABS(-101) |
+-----------+
|       101 |
+-----------+
1 row in set (0.00 sec)

返回值的类型派生自参数的类型;

如需转载,请注明出处;本文地址:https://www.perfcode.com/p/mysql-abs-function.html