sql >> Base de Datos >  >> RDS >> Mysql

¿Devolver todas las filas de la subconsulta SQL?

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