1
我在這個查詢的問題:此INSERT MAX + 1查詢有什麼問題?
INSERT INTO invoices(invuid, linenumber) VALUES (?, SELECT(SELECT max(linenumber)+1 FROM invoices WHERE invuid=?))
口口聲聲說:"General error: 1093 You can't specify target table 'invoices' for update"