PostgreSQL height() Function
The PostgreSQL height()
function returns the vertical height of the specified rectangle.
height()
Syntax
This is the syntax of the PostgreSQL height()
function:
height(box) -> double precision
Parameters
box
-
Required. A rectangle. For example:
box '(1,1),(-1,-1)'
.
Return value
The PostgreSQL height()
function returns the vertical height of the specified rectangle.
height()
Examples
The following statement shows how to use the PostgreSQL height()
function to return the vertical height of box '(1,1),(-1,-1)'
.
SELECT height(box '(1,1),(-1,-1)');
height
--------
2