Product Documentation

SQL Reference Guide

Previous Topic

Next Topic

POWER function (ODBC compatible)

Syntax

POWER ( expression1 , expression2 )

Description

The scalar function POWER returns expression1 raised to the power of expression2.

Example

SELECT POWER ( 3 , 2) '3 raised to the 2nd power'

FROM ADMIN.SYSCALCTABLE;

Notes

  • Expression1 must evaluate to a numeric data type.
  • Expression2 must evaluate to an exact numeric data type.

TOCIndex