sql 无限级查询

原创
2017/05/12 15:21
阅读数 196

  SELECT 
   stc1.*
  FROM (SELECT DISTINCT
      comment_parent_id AS comment_id
    FROM smd_theme_comment) as  stc
    JOIN smd_theme_comment stc1
      ON stc.comment_id = stc1.comment_parent_id

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部