Back to Starrocks

uuid_numeric

docs/en/sql-reference/sql-functions/utility-functions/uuid_numeric.md

4.1.0511 B
Original Source

uuid_numeric

Returns a random UUID of the LARGEINT type. This function has an execution performance 2 orders of magnitude better than the uuid function.

Syntax

Haskell
uuid_numeric();

Parameters

None

Return value

Returns a value of the LARGEINT type.

Examples

Plain
MySQL > select uuid_numeric();
+--------------------------+
| uuid_numeric()           |
+--------------------------+
| 558712445286367898661205 |
+--------------------------+
1 row in set (0.00 sec)