基本上,我想這樣做:update vehicles_vehicle v join shipments_shipment s on v.shipment_id=s.id set v.price=s.price_per_vehicle;我很確定這可以在MySQL(我的背景)中使用,但似乎在postgres中不起作用。我得到的錯誤是:ERROR: syntax error at or near "join"LINE 1: update vehicles_vehicle v join shipments_shipment s on v.shi... ^當(dāng)然,有一種簡單的方法可以執(zhí)行此操作,但是我找不到正確的語法。那么,我將如何在PostgreSQL中編寫此代碼?
如何在PostgreSQL中進(jìn)行更新+加入?
慕尼黑8549860
2019-10-14 10:29:34