重申一下,是要写在存储过程里!!!!!
select * from (select t.*,row_number()over(partition by t.sitecode1 ,t.sitecode2,t.distance order by 1) rn from table_name t ) where rn = 1;
17,082
社区成员
55,236
社区内容
加载中
试试用AI创作助手写篇文章吧