positive

description

Syntax

BIGINT positive(BIGINT x) DOUBLE positive(DOUBLE x) DECIMAL positive(DECIMAL x) 返回x.

example

  1. mysql> SELECT positive(-10);
  2. +---------------+
  3. | positive(-10) |
  4. +---------------+
  5. | -10 |
  6. +---------------+
  7. mysql> SELECT positive(12);
  8. +--------------+
  9. | positive(12) |
  10. +--------------+
  11. | 12 |
  12. +--------------+

keywords

  1. POSITIVE