在SQLite中,通常可以使用
rowid:
select s.*from stops swhere s.rowid = (select min(s2.rowid) from stops s2 where s2.stop_id = s.stop_id and s2.stop_name = s.stop_name );
我不确定这是否是您真正需要的。但这似乎就是您想要处理的
row_number()。如果没有解决问题,请询问另一个有关示例数据和所需结果的问题。

在SQLite中,通常可以使用
rowid:
select s.*from stops swhere s.rowid = (select min(s2.rowid) from stops s2 where s2.stop_id = s.stop_id and s2.stop_name = s.stop_name );
我不确定这是否是您真正需要的。但这似乎就是您想要处理的
row_number()。如果没有解决问题,请询问另一个有关示例数据和所需结果的问题。