Name

POW()

Synopsis

POW(number, exponent)

This function returns the result of raising the number given in the first argument to the exponent given in the second argument. It’s an alias of POWER(). Here is an example:

SELECT POW(2, 4);

+-----------+
| POW(2, 4) |
+-----------+
| 16.000000 |
+-----------+

Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.