发布网友 发布时间:2022-04-25 16:23
共1个回答
热心网友 时间:2022-05-05 08:30
你可以在子查询里再加一层查询,就可以绕开limit子查询的问题了 "select * from forum_topic where moleId="+ moleId + " and topicId not in( select topicId from ( select topicId from forum_topic where moleId=" + moleId + " order by publishDate desc limit 1,"+listBegin+" ) as ft ) order by publishDate desc limit 1,"+listBegin+"";