MySQL Function Reference

ABS
Returns the absolute value of a number
MySQL 8.1
ABS(num)
Examples
MySQL 8.1
SELECT ABS(-2);