logoalt Hacker News

zelphirkaltyesterday at 11:17 PM2 repliesview on HN

I had similar thoughts, but how does one use an RDBMS without making use of FKs? Do they put all in one huuuge table, that has all the columns and is super sparse? Or some other fever dream of bad design?


Replies

Muromectoday at 12:36 AM

You can have a field with some value that just happens to match the id in a different table. That something could be a foreign key or just a number.

codr7yesterday at 11:37 PM

As long as you don't give a shit about data integrity, you don't need foreign keys.