Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
选择列中最后遇到的值。
RESPECT NULLS
anyLast(column) [RESPECT NULLS]
last_value
column
Any
CREATE TABLE tab(city Nullable(String)) ENGINE=Memory; INSERT INTO tab (city) VALUES ('Amsterdam'), (NULL), ('New York'), ('Tokyo'), ('Valencia'), (NULL); SELECT anyLast(city), anyLastRespectNulls(city) FROM tab;
┌─anyLast(city)─┬─anyLastRespectNulls(city)─┐ │ Valencia │ ᴺᵁᴸᴸ │ └───────────────┴───────────────────────────┘
此页面对您有帮助吗?