Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Alle Zeilen aus der Unterabfrage SQL zurückgeben?

SELECT a.* 
  FROM commenttoarticle a 
  JOIN commenttoarticle b
    ON b.CommentToArticlePID = a.idCommentToArticle 
 ORDER  
    BY a.idCommentToArticle DESC 
 LIMIT 3