This topic created in 2388 days ago, the information mentioned may be changed or developed.
A 字段跟 B 字段相同,并且记录的 create_time 间隔小于时间 5 分钟的记录,取时间最前的那一条记录
2 replies • 2020-04-22 15:23:36 +08:00
 |
|
sql 去重?整到应用层来处理这个逻辑不香吗?
|
 |
|
我 sql-fu 很一般. 但是这个看起来相对容易啊
from Table where a=b and create_ts > "5min ago" order by create_ts limit 1
|