3 ms·
I don't think something that works in 95% of the cases would be accepted by the SQL committee. I think at least you would need to find a way to follow foreign
by JoelJacobson 5y ago
I don't think something that works in 95% of the cases would be accepted by the SQL committee.
I think at least you would need to find a way to follow foreign keys on multiple columns.
I can see why working with column names would be nice, since we then would not have to deal with foreign key names at all, which is another thing to keep track of mentally. But the only way that would work would be if we would forbid creating multiple foreign keys on the same set of columns, only then would the set of columns uniquely identify what foreign key to follow. This is much more invasive though, as it could break existing data models.