

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# FIRST\$1VALUE
<a name="sql-reference-first-value"></a>

```
FIRST_VALUE( <value-expression>) <null treatment> OVER <window-specification>
```

FIRST\$1VALUE 从有资格聚合的第一行中返回 <value expression> 的评估。FIRST\$1VALUE 需要使用 OVER 子句，因此被视为[分析函数](sql-reference-analytic-functions.md)。FIRST\$1VALUE 有一个 null 处理选项，定义在下表中。


| Null 处理选项 | 效果 | 
| --- | --- | 
|  FIRST\$1VALUE(x) IGNORE NULLS OVER <window-specification>  |  返回 <window-specification> 中 x 的首个非 null 值  | 
|  FIRST\$1VALUE(x) RESPECT NULLS OVER <window-specification>  |  返回第一个值，包括 <window-specification> 中 x 的 null 值  | 
|  FIRST\$1VALUE(x) OVER <window-specification>  |  返回第一个值，包括 <window-specification> 中 x 的 null 值  | 