自连接都不知道?
select * from 表 a, 表 b where a.xx_id=b.xx_id and a.type=0 and b.type=1 and b.time>a.time and adddate(a.time, INTERVAL 10 MINUTE)<=b.time
21,895
社区成员
140,350
社区内容
加载中
试试用AI创作助手写篇文章吧