oracle中,每种类型的数据,各取n行(随意取)
2020-01-07 本文已影响0人
氕氘氚_笔记
select *
from (select t.*,rank() over(partition by t.字段名称1 order by t.字段名称2) rn
from t
)
where rn<= n
select *
from (select t.*,rank() over(partition by t.字段名称1 order by t.字段名称2) rn
from t
)
where rn<= n