Jump to: navigation, search

Mysql POW

From w3cyberlearnings

Contents

MySQL POW Function

This function returns X raised to the power of Y.

Syntax POW

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


POW(X,Y);

Example 1

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

Example 2

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

Related Links


Navigation
Web
SQL
MISC
References