Топ-100
 

ABS

RDBMS Type: MySQL
Topic

Syntax:
ABS(X)

Returns the absolute value of X.

URL: https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html

Example

mysql> SELECT ABS(2);
-> 2
mysql> SELECT ABS(-32);
-> 32