This tutorial explains how to use the MySQL ABS function with syntax and examples.
The MySQL ABS function returns the absolute value of a number.
The syntax for the ABS function in MySQL is:
The number to convert to an absolute value.
The ABS function can be used in the following versions of MySQL:
Let's look at some MySQL ABS function examples and explore how to use the ABS function in MySQL.
For example: