Re:SQL style guide
by ryeguy on Monday October 10, 2016 @12:12AM
(#12675000)
One advantage of using user_id on both the pk of users as well as the fk side is you can do:
instead of:
[ Parent
| on HN ]
Re:SQL style guide
by philliphaydon on Monday October 10, 2016 @07:29AM
(#12676403)
Which is fine if you are aware of the differences between the two. Since they act differently.
I don't think so, what differences are there? Could this be a database specific thing? In PG it seems equivalent.
Re:SQL style guide
by philliphaydon on Monday October 10, 2016 @09:06PM
(#12681198)
In MySQL you can end up with different results.