QuestDB
EnterpriseCustomersDocsBlog
8.3.1
  • Roadmap
Download
  • Introduction
  • Quick start
  • Why QuestDB?
  • Schema Design Essentials
  • Migrate from InfluxDB
  • Ingestion Reference
  • Query & SQL Reference
    • Query & SQL Overview
    • PGWire Clients
      • Overview
      • Python
      • Go
      • Java
      • Rust
      • Node.js
      • .NET
      • PHP
      • R
    • Data types
    • SQL execution order
    • SQL Syntax
    • Functions
      • Aggregate
      • Binary
      • Boolean
      • Conditional
      • Date and time
      • Finance
      • Hash
      • JSON
      • Meta
      • Numeric
      • Parquet
      • Pattern matching
      • Random value generator
      • Row generator
      • Spatial
      • Text
      • Timestamp generator
      • Timestamp
      • Touch
      • Trigonometric
      • UUID
      • Window
    • Operators
  • Deployment
  • Operations
  • Guides & Tutorials
  • Concepts
  • Third-party Tools
  • Troubleshooting
  • Query & SQL Reference
  • Functions
  • UUID

UUID functions

This page describes the available functions related to UUID data type.

to_uuid​

to_uuid(value, value) combines two 64-bit long into a single 128-bit uuid.

Arguments​

  • value is any long

Return value​

Return value type is uuid.

Examples​

SELECT to_uuid(2, 1)
AS uuid FROM long_sequence(1);

Returns:

00000000-0000-0001-0000-000000000002
Edit this page
Previous
Trigonometric
Next
Window
  • to_uuid
    • Arguments
    • Return value
    • Examples

Need a hand? Join our vibrant public Slack and Discourse forum communities.

Copyright © 2025 QuestDB
PrivacyTerms