QuestDB LogoQuestDB Logo
Return to QuestDB.comDocumentationTutorialsBlogEnterprisePublic SlackDiscourse CommunityView QuestDB Repo
⚡️ QuestDB Enterprise
9.2.3|16.5k
  • Release Notes
  • Roadmap
  • Introduction
  • Why QuestDB?
  • Schema design
  • Getting Started
  • Ingestion Reference
  • Query & SQL Reference
    • Overview
    • PostgreSQL Wire Protocol
    • REST HTTP API
    • Data Types
    • SQL Syntax
    • SQL execution order
    • Functions
      • Aggregate
      • Array
      • 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
  • Concepts
  • Architecture
  • Configuration
  • Security
  • High Availability
  • Operations
  • Deployment
  • Integrations
  • Tutorials
  • Troubleshooting
  • Release Notes
  • 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