Lets say I have 2 tables in my db
user:
id, username
userpost:
userid, post
I have defined a Relation to connect userpost.userid to user.id in side the db (mysql).
Is there a query (as simple as possible) to pull the whole row (including user’s row)
WITHOUT knowing the relationship at the programmer side? meaning, relaing on the relationship defined in the db itself
something like "SELECT * from userpost include foreign key"
Possible problem would be the 1:many relationship between user and userpost: You would get each user-record multiple times (once for each userpost record)