Thanks to visit codestin.com
Credit goes to github.com

Skip to content

postgres UPDATE - FROM syntax #1586

@snowcxt

Description

@snowcxt

Is there a way to write postgres script like this?

UPDATE vehicles_vehicle AS v 
SET price = s.price_per_vehicle
FROM shipments_shipment AS s
WHERE v.shipment_id = s.id 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions