0
Hello guys我想獲取where /和子句中列的最後一個id。獲取where /和子句列中的最後一個id mysql/sql
這是我已經試過:
SELECT i.documentnumber, i.documentseq, i.transactiondate, v.vancode, i.itemcode, i.qty, i.amount, i.reason, i.posted, i.dateposted, i.unitprice
FROM intrans AS i
JOIN intrans_vancode AS v ON i.locationcode = v.vancode
WHERE posted = 0
ORDER BY v.id DESC
但我發現了一組功能的錯誤/問題。
任何想法如何實現我想要的?謝謝你的幫助。