Skip to content

POWER

  • base: The number that serves as the base in the exponentiation calculation. It can be any valid numeric type and must be provided in order to use the POWER function.
  • exponent: The number that serves as the exponent in the calculation. It indicates the number of times the ‘base’ value is multiplied by itself. This also can be any valid numeric type and must be supplied as a parameter in the POWER function.
SELECT POWER(2, 3) AS Result;
+--------+
| Result |
+--------+
| 8 |
+--------+

In the given example, the POWER() function in MySQL takes two arguments. The first argument is the base, while the second argument is the exponent. The function returns the base raised to the power of the exponent. So, POWER(2,3) would compute 2 to the power of 3, resulting in 8.