How to Define null value of UUID column in Postgres

Viewed 33

Is there a way i can define what value is considered NULL for a database column?

for example making uuid null value = 00000000-0000-0000-0000-000000000000

this way when i use WHERE col IS NULL or reference it as foreign key it can be used as 00000000-0000-0000-0000-000000000000 instead of NULL

0 Answers
Related