我在前面的問題中得到了這個SQL,但我在解釋查詢時沒有得到任何迴應。所以我在這裏問。 我剛纔的問題:How can i remove the oldest entries in my SQL result?有人可以爲我解釋這個SQL嗎?
select a.id,
a.user,
a.item_id,
a.created
from reports as a
where a.created = (select max(created)
from reports as b
where a.item_id = b.item_id)
什麼部分你不明白? –
請至少鏈接到其他問題,所以我們有一些背景! –
我想要它解釋 - 部分零件,瞭解完整查詢 –