Mengembalikan nilai absolut X, atau NULL jika X adalah NULL.
SELECT ABS(2);
2
SELECT ABS(-32);
32
The result type is derived from the argument type. An implication of this is that ABS(-9223372036854775808) produces an error because the result cannot be stored in a signed BIGINT value.
SELECT ABS(2);
2
SELECT ABS(-32);
32