Suppose you have fetched two values X and Y and you want to find the value of X to the power of Y, then you can use something like this:
select power(X,Y);
Output:
+---------------------------+
| power(X, Y)               |
+---------------------------+
| value of X to the power Y |
+---------------------------+