Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SnowHill9902
on July 11, 2022
|
parent
|
context
|
favorite
| on:
Postgres 15 improves UNIQUE and NULL
Sure, but it’s arbitrary from a data structure standpoint and sloppy design.
ryanbrunner
on July 11, 2022
[–]
SQL gives you no other options though, there's no other construct that means "not present", since NULL is unknown vs. not present.
SnowHill9902
on July 11, 2022
|
parent
[–]
It depends on your column. If you have a products table and a certain handmade product has no upc, it’s correct to use ‘’ as its value rather than NULL because you know for a fact that its non-existent. Some people respect NULL too much.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: