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
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
自连接都不知道?
自连接都不知道?