Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Retornar todas as linhas da subconsulta SQL?

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