UPDATE statement with multiple joins in PostgreSQL

前端 未结 5 1830
说谎
说谎 2021-01-07 18:16

I\'m trying to update a table called incode_warrants and set the warn_docket_no to the viol_docket_no from the incode_violations

5条回答
  •  感情败类
    2021-01-07 18:54

    Your update a table, not the join

    update incode_warrants ALIAS
    set warn_docket_no = iv.viol_docket_no
    from incode_warrantvs as iw 
    ...
    

提交回复
热议问题