Jump to: navigation, search

Mysql POWER

From w3cyberlearnings

Contents

MySQL POWER Function

This function returns X raised to the power of Y. It is the same as POW() function.

Syntax POWER

X raised to power of Y, or X^Y.


POWER(X,Y);

Example 1

mysql> SELECT POWER(2,2);
+------------+
| POWER(2,2) |
+------------+
|          4 |
+------------+
1 row in set (0.00 sec)

Example 2

mysql> SELECT POWER(2,3);
+------------+
| POWER(2,3) |
+------------+
|          8 |
+------------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References