2
我試圖將MSSQL數據庫轉換爲MySQL,我的版本是5.7。我遇到了障礙。MySQL轉換ROW_NUMBER()OVER分區
SELECT orderid, invs.[InvoiceID], invs.[InvoiceDate],
invs.[InvoiceNumber], invs.[HasClientPaid],
ROW_NUMBER() OVER (PARTITION by orderid,invs.invoicenumber,HasClientpaid ORDER BY orderid) AS DistNum
FROM InvoiceLineItems Ilt
JOIN Invoices Invs ON Ilt.InvoiceID= invs.InvoiceID
任何幫助將不勝感激。謝謝
你的問題現在解決了嗎?你仍然有關於這個答案的問題嗎?要接受答案「[**點擊Tick **](https://ibb.co/ikqyO6)」以獲取更多信息,請參閱[help/accepting](https://stackoverflow.com/help/someone-answers) –