positive
Description
Syntax:
BIGINT positive(BIGINT x)
DOUBLE positive(DOUBLE x)
DECIMAL positive(DECIMAL x)
This function returns x
.
Example
mysql> SELECT positive(-10);
+---------------+
| positive(-10) |
+---------------+
| -10 |
+---------------+
mysql> SELECT positive(12);
+--------------+
| positive(12) |
+--------------+
| 12 |
+--------------+
Keywords
POSITIVE