SQL语句如下:
select * from lg_poster
a join (select (hash
) from lg_poster where status='publish' order by last_reply_time
desc limit 20 offset 0) b on a.hash = b.hash
SQL语句如下:
select * from lg_poster
a join (select (hash
) from lg_poster where status='publish' order by last_reply_time
desc limit 20 offset 0) b on a.hash = b.hash
1 回答4.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
1 回答1.4k 阅读✓ 已解决
2 回答2.2k 阅读
1 回答592 阅读✓ 已解决
1.1k 阅读
这种又子查询 又有join 我选择直接sql
我之前也没找到 答案
如果只有join我是这么用