Jump to: navigation, search

PostgreSQL CBRT

From w3cyberlearnings

Contents

Postgresql CBRT

Returns a cube root for a number.

Syntax CBRT

X is an integer.

CBRT(X);

Example 1

postgres=# SELECT cbrt(27);
 cbrt 
------
    3
(1 row)

Example 2

postgres=# SELECT cbrt(125);
 cbrt 
------
    5
(1 row)

Related Links



Navigation
Web
SQL
MISC
References