2016-03-08 55 views

回答

0

因爲它是由評論其他人,你需要定義哪個是訂單標準來做到這一點。這裏是我的建議:

select x.* 
from (
     select t.*, 
       row_number() over(order by <fieldname> desc) as rn 
     from table t 
    ) x 
where x.rn = 1 
+0

好的,它是固定的...順便說一句,下次不要嚇壞了,有時候人們的代碼格式與你有點不同...... –

相關問題