QuestDB LogoQuestDB Logo
Return to QuestDB.comDocumentationTutorialsBlogEnterprisePublic SlackDiscourse CommunityView QuestDB Repo
⚡️ QuestDB Enterprise
9.2.3|16.5k
  • Release Notes
  • Roadmap
  • Getting Started
    • Introduction
    • Quick startPopular
    • Why QuestDB?Popular
    • Schema Design EssentialsPopular
    • Capacity planning
    • Create a sample database
    • Upgrade to EnterpriseEnterprise
    • Enterprise Quick StartEnterprise
    • Web Console
  • Connect & Ingest
  • Query Data
    • Query & SQL Overview
    • Data Types
      • Overview
      • N-Dim array
      • Decimal
      • Geospatial data
    • 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
  • SecurityEnterprise
  • High AvailabilityEnterprise
  • Operations
  • Deployment
  • Integrations
  • Tutorials
  • Troubleshooting
  • SQL Reference
  • Release Notes
  • Query Data
  • 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