您可以使用子选择
select * from table where client_id in (select distinct client_id from table order by client_id limit 5)
上一篇 透视Sybase SQL查询?
下一篇 SQL:聚合函数和分组依据
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号