power function

The pow function returns the value of the first expression raised to the power of the second expression.

Syntax:

double pow(n2,n1)

Semantics:

Example 1 - power function

SELECT pow(n2,n1) FROM PHtable
Value of n Value of b Output
2 4 16.0
2 0 1.0
-0.5 4 0.0625
0.5 -4 16.0