GENERATE_UUID function

GENERATE_UUID function

Function Name Description Usage Input parameter Return value
GENERATE_UUID Generates a random UUID. GENERATE_UUID() N/A A string

Supported data type

The GENERATE_UUID function supports the following data type:

  • String

Example: Generate a UUID.

Usage: GENERATE_UUID()

Output: 57547434-b572-4aaa-8da6-e6768850baa3

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.