标签: postgresql
是否可以更新Postgresql中两个表中的行?
表格名称为patron和cir_transaction
patron
cir_transaction
列名为patron_id
patron_id
我需要更新上面两个表格中存在的patron_id的相同行
我写的如下
update patron p, cir_transaction c set patron_id = '4BW14MBA10' where patron_id = '4BW14MBA10 ' and c.patron_id = patron_id