Skip to main content

GREATEST

从一组值中返回最大值。

语法

GREATEST(<value1>, <value2> ...)

示例

SELECT GREATEST(5, 9, 4);

┌───────────────────┐
│ greatest(5, 9, 4)
├───────────────────┤
9
└───────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today