PostgreSQL/Math Functions/cbrt

Материал из SQL эксперт
Версия от 13:14, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>