News for hackers. Stuff that matters.
Re:We do not use foreign keys (2016) by Hamuko on Friday November 08, 2019 @04:31PM (#21487038)
You have columns that refer to the PKs of other tables, just without constraints. So your invoice table would have a column `user_id`, which tells you which user the invoice is for. But if you enter an invoice for user ID 999,999 when you have no users, the database eats it happily, since it has no opinion as to what that data should be.

There are no comments on this comment yet.