Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
POW
On this page
The POW() function returns the given number exponentiated to the given power.
Syntax
POW ( number, power )POWER ( number, power )
Arguments
-
expression: Any valid numeric expression. -
power: Any valid numeric expression.
Return Type
Float or double.NULL.
Examples
SELECT POW(2, 8);
+-----------+
| POW(2, 8) |
+-----------+
| 256 |
+-----------+SELECT POW(2, 16);
+------------+
| POW(2, 16) |
+------------+
| 65536 |
+------------+SELECT POW(2, 24);
+------------+
| POW(2, 24) |
+------------+
| 16777216 |
+------------+SELECT POW(2, 2.5);
+-------------------+
| POW(2, 2.5) |
+-------------------+
| 5.656854249492381 |
+-------------------+Last modified: