Quote: 引用:select * from ( select t.*,row_number(partition by 设备号 order by 记录时间 desc) rn from t ) where rn=1报错了ora-00907:缺失右括号
select * from ( select t.*,row_number(partition by 设备号 order by 记录时间 desc) rn from t ) where rn=1