Return 4 raised to the power of 2.
SELECT POWER(4, 2); |
The POWER() function calculates the value of a number raised to the power of another number.
Note: This function is equivalent to the POW() function.
POWER(x, y) |
Parameter |
Description |
x |
Mandatory: A numerical value (the base) |
y |
Necessary: A numerical value (the exponent) |
Technical Details
Works in: |
From MySQL version 4.0 |
Compute the result of raising 8 to the power of 3.
SELECT POWER(8, 3); |