Course
Simulator
More
Premium
Log in
PostgreSQL Function Reference
Functions
LEAST
LEAST
Returns the smallest value from a list of values.
PostgreSQL 17.5
LEAST
(
num
[
,
num
]
)
num
Numeric values to compare
Examples
PostgreSQL 17.5
SELECT
LEAST
(
1
,
2
,
-
1
)