select 
    * 
from 
    merchandise   m
left join 
    user_comments u
on 
    m.ID=u.article_id 
ORDER BY 
    u.article_id DESC;

解决方案 »

  1.   

    select * from merchandise left join user_comments  on merchandise.ID=Comments.article_id  
    %* where user_comments.article_id=merchandise.ID *%
    ORDER BY user_comments.article_id DESC
      

  2.   

    不好意思.
    我的意思是想列出:商品表中的有评论的商品,也就是user_comments 表保存有merchandise的ID的记录.但好像上面两个都是全部列出商品?