Jump to: navigation, search

PostgreSQL POWER

From w3cyberlearnings

Contents

Postgresql POWER

This function returns X raised to the power of Y

Syntax POWER

X raised to power of Y, or X^Y.

POWER(X);

Example 1

postgres=# SELECT POWER(2,2);
 power 
-------
     4
(1 row)

Example 2

postgres=# SELECT POWER(2,3);
 power 
-------
     8
(1 row)

Related Links



Navigation
Web
SQL
MISC
References