POWER function [Numeric]

Calculates one number raised to the power of another.

Syntax
POWER( numeric-expression-1, numeric-expression-2 )
Parameters
  • numeric-expression-1   The base.

  • numeric-expression-2   The exponent.

Returns

DOUBLE

Remarks

This function converts its arguments to DOUBLE, and performs the computation in double-precision floating point. If any argument is NULL, the result is a NULL value.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 64.

SELECT POWER( 2, 6 );