答案 0 :(得分:2)
您可以对Oracle
执行以下操作:
select * from (
select value
from table
group by value
order by min(serial)
) where rownum <=5
答案 1 :(得分:1)
试试这个(对于MySQL ):
SELECT DISTINCT value FROM <table-name> ORDER BY serial LIMIT 5;
答案 2 :(得分:0)