Jump to: navigation, search

PostgreSQL SQRT

From w3cyberlearnings

Contents

Postgresql SQRT

This function returns the square root of a positive X.

Syntax SQRT

X is a positive number.

SQRT(X);

Example 1

postgres=# SELECT SQRT(4);
 sqrt 
------
    2
(1 row)

Example 2

postgres=# SELECT SQRT(25);
 sqrt 
------
    5
(1 row)

Related Links



Navigation
Web
SQL
MISC
References