按record_id分组显示行号
select ROW_NUMBER() OVER (PARTITION BY record_id order by id desc) line_num,record_id,deal_emp_name auditor_name
from oa_table_deal
where table_name='ss_call'
select ROW_NUMBER() OVER (PARTITION BY record_id order by id desc) line_num,record_id,deal_emp_name auditor_name
from oa_table_deal
where table_name='ss_call'