All Products
Search
Document Center

MaxCompute:UNIQUE_ID

Last Updated:Mar 26, 2026

Returns a unique ID as a string, such as 29347a88-1e57-41ae-bb68-a9edbdd9****_1.

Usage notes

unique_id() is more efficient than the UUID function and returns a longer ID. The returned ID includes an underscore (_) and a digit appended at the end, such as _1.

Syntax

string unique_id()

Related functions