拥有这张table:
id | lat | lon | timestamp
---------+------------+------------+------------
5590761 | 41.0106651 | -8.4618407 | 1491071642
5590761 | 41.0088282 | -8.4613129 | 1491071670
5590761 | 41.0081011 | -8.4626845 | 1491071763
5590761 | 41.008415 | -8.4621233 | 1491071767
5590761 | 41.0084717 | -8.46211 | 1491071768
5590761 | 41.008525 | -8.4620333 | 1491071769
5590761 | 41.00859 | -8.4619783 | 1491071770
5590761 | 41.008635 | -8.461875 | 1491071771
5590761 | 41.0087083 | -8.4616717 | 149107177
有些记录的示例很少。我想删除唯一的所有记录 id
计数小于10。
1条答案
按热度按时间qcuzuvrc1#
可以在中使用子查询
delete
:如果您只想删除
select
查询时,可以使用窗口函数: