type
UUID
PostgreSQL stores 128-bit identifiers. The type validates representation, but uniqueness requires an appropriate constraint. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
UUIDWorking Example
Example Snippetsql
SELECT CAST(UUID '550e8400-e29b-41d4-a716-446655440000' AS TEXT);