Use power : Power « Math « SQL / MySQL






Use power

 
/*
mysql> select POW(10, 2);
+------------+
| POW(10, 2) |
+------------+
|        100 |
+------------+
1 row in set (0.00 sec)

mysql> select POWER(2, 10);
+--------------+
| POWER(2, 10) |
+--------------+
|         1024 |
+--------------+
1 row in set (0.00 sec)


*/  
select POW(10, 2);
select POWER(2, 10);
           
         
  








Related examples in the same category

1.Use the POW() function to raise the Amount values by a power of 2.
2.POW(, )