Welcome Guest, Not a member yet? Register   Sign In
Mysql query - one row details, child rows
#4

[eluser]boltsabre[/eluser]
Oh right, oppps, sorry, completely dismiss my above comment, a right join will return all rows from table b, so long as it has 'b.parent'... don't know what I was thinking, brain fade, long day at work here.

So let me get this right... want to get a blog post and its details (table a) AND all comments associated to that particular post (table b)?

If that's the case, run two queries, one to get the blog details, another to get its comments.


Messages In This Thread
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 05:59 AM
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 06:40 AM
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 06:56 AM
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 07:22 AM
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 07:47 AM
Mysql query - one row details, child rows - by El Forum - 06-20-2012, 07:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB