need clean way to copy col vals from one rec to another - Mailing list pgsql-general

From Gauthier, Dave
Subject need clean way to copy col vals from one rec to another
Date
Msg-id 482E80323A35A54498B8B70FF2B879800444228E6C@azsmsx504.amr.corp.intel.com
Whole thread Raw
Responses Re: need clean way to copy col vals from one rec to another  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
List pgsql-general

create table foo (name text, company text,  job text);

insert into foo (name,company,job) values (‘joe’,’ge’,’engineer’);

insert into foo (name) values (‘sue’);

 

What I want to do is map joe’s company and job over to the sue record, ending up with....

‘sue’ ‘ge’ ‘engineer’

 

Is there a quick/clever.efficient way to do this?

 

Thanks in Advance

pgsql-general by date:

Previous
From: "Massa, Harald Armin"
Date:
Subject: Re: more than 2GB data string save
Next
From: Vincenzo Romano
Date:
Subject: Re: Best way to handle multi-billion row read-only table?