PostgreSQL/Math Functions/cbrt

Материал из SQL эксперт
Перейти к: навигация, поиск

cbrt(dp) cube root

   <source lang="sql">

postgres=# postgres=# -- cbrt(dp) cube root postgres=# postgres=# select cbrt(27.0);

cbrt

   3

(1 row) postgres=# postgres=#

      </source>
   
  


cbrt(x): Returns the cube root of x

   <source lang="sql">

postgres=# -- cbrt(x): Returns the cube root of x postgres=# SELECT cbrt(8.0) AS "eight"s cube root";

eight"s cube root

                2

(1 row) postgres=#

      </source>