Provide the result of raising 4 to the power of 2.
| SELECT POW(4, 2); |
The POW() function yields the result of a number raised to a specified power.
Note: This function is equivalent to the POWER() function.
| POW(x, y) |
|
Parameter |
Description |
|
x |
Mandatory: A numerical value representing the base. |
|
y |
Mandatory: A numerical value representing the exponent. |
| Works in: | From MySQL 4.0 |
Provide the result of raising 8 to the power of 3.
| SELECT POW(8, 3); |