我子查詢的基礎上更新記錄,但它給我的錯誤錯誤更新記錄
你不能從第
我的查詢指定的目標表中更新是
UPDATE paymentinfo set customer_id =
(
SELECT transation.transactionid
FROM paymenttransaction AS transation
LEFT JOIN paymentinfo as payment
ON (transation.paymentinfoid=payment.paymentinfoid)
where payment.hash="0b576d33c57484692131471a847eab7c"
)
WHERE hash="0b576d33c57484692131471a847eab7c"
我在哪裏錯了,這將是完美的解決方案,這個問題
嘗試'更新paymentinfo設置paymentinfo.customer_id'它一次 – khalid