POWER()

Overview

Returns the value of the first argument raised to the power of the second argument.

USAGE

POWER(base, exponent)

Argument Name

Description

base

The numeric base

exponent

The numeric exponent

DETAILS

POWER() is a mathematical function that returns the value of the base raised to the indicated exponent power. Both base and exponent should be real numbers.

The return value must fit within the DOUBLE data type or an error is generated.

A NULL is returned if either arguments is NULL.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT POWER(2, 3), POWER(1, -2);
+-------------+--------------+
| POWER(2, 3) | POWER(1, -2) |
+-------------+--------------+
|           8 |            1 |
+-------------+--------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES