select s.*
from (
select *, row_number() over (partition by PersonnelAccount order BY PersonnelID) as group_idx
from AUX_SpecialPersonnel
) s
where s.group_idx > 1
时间: 2024-10-07 05:53:43
select s.*
from (
select *, row_number() over (partition by PersonnelAccount order BY PersonnelID) as group_idx
from AUX_SpecialPersonnel
) s
where s.group_idx > 1