- 类别:
上下文函数 (通用)
CURRENT_VERSION¶
返回当前的 Snowflake 版本。
- 另请参阅:
语法¶
实参¶
无。
返回¶
返回值的数据类型是 VARCHAR。
返回值包含四个字段:
major_versionMajor version numbers change annually. For example, the major version for all releases in 2026 is 10. For all releases in 2025, the major version is 9.
minor_version每个周版本的次要版本号都会更改。
patch_versionPatch version numbers represent minor changes within a weekly release. It can be 1x or 10x based on the Early Adopter release and Weekly release respectively.
internal_identifier此字段仅供内部使用。
For example, for version 10.15.10, the major version is 10, the minor version is 15, and the patch version is 10. (Early Adopter Release)
For example, for version 10.15.100, the major version is 10, the minor version is 15, and the patch version is 100. (Weekly Release - All accounts)
使用说明¶
此函数返回 Snowflake 的版本号信息。要检索有关客户端版本的信息,请参阅 CURRENT_CLIENT。
示例¶
此示例展示用于运行查询的 Snowflake 版本:
输出: