2013-01-21 134 views

回答

2

這將要給你什麼需要U:

select * from (select *,RANK() OVER (PARTITION BY tp_id ORDER BY tp_version DESC) AS rnk 
     from yourtable 
     ) mytable where rnk <= 1 
+0

太謝謝你了。 –

相關問題