UPDATE across tables - Mailing list pgsql-novice

From Jake Matchett
Subject UPDATE across tables
Date
Msg-id sd510c15.047@gwmail.nottingham.ac.uk
Whole thread Raw
Responses Re: UPDATE across tables  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-novice
I need to update the primary key field in two tables sharing this field, I can't update separately because I get an integrity violation message that tells me the field is still being referenced from the other table, fair enough but is there any way of doing a joined/linked/double update to the primary key of both tables simultaneously? Something like: UPDATE table1.fieldx, table2.fieldx SET fieldx='yyyyy' WHERE fieldx='zzzzz';
 
Jake Matchett
The University of Nottingham
Media Centre
Medical School, Queen's Medical Centre
Nottingham NG7 2UH
(74) 44001
voice +44 (0) 115 9249924 ext 44001
fax     +44 (0) 115 9709917
< http://www.nottingham.ac.uk/aves/ >

pgsql-novice by date:

Previous
From: "Jake Matchett"
Date:
Subject: UPDATE across tables
Next
From: Oliver Elphick
Date:
Subject: Re: UPDATE across tables