Guest User

Untitled

a guest
Aug 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. MySQL Join Examining Every Row
  2. SELECT *
  3. FROM comments AS c
  4. INNER JOIN articles AS a ON c.article_id = a.article_id
  5. INNER JOIN user_profiles AS p ON c.user_id = p.user_id
  6. INNER JOIN blog_users AS b ON c.user_id = b.user_id
  7. INNER JOIN forum_users AS f ON b.username = f.username
  8. WHERE a.article_id = :article_id
  9. ORDER BY c.comment_id DESC
  10. LIMIT 0 , 30
  11.  
  12. WHERE c.Article_ID = :article_ID
Add Comment
Please, Sign In to add comment