need clean way to copy col vals from one rec to another

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: need clean way to copy col vals from one rec to another
Date: 2010-02-10 16:28:55
Message-ID: 482E80323A35A54498B8B70FF2B879800444228E6C@azsmsx504.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Romano 2010-02-10 16:40:25 Re: Best way to handle multi-billion row read-only table?
Previous Message Massa, Harald Armin 2010-02-10 16:26:36 Re: more than 2GB data string save