Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D2D97475E02 for ; Thu, 5 Sep 2002 14:35:23 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 683CE475DDB for ; Thu, 5 Sep 2002 14:35:23 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id C9576381959; Thu, 5 Sep 2002 14:35:22 -0400 (EDT) From: "Ligia Pimentel" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Update help Date: Thu, 5 Sep 2002 12:29:47 -0500 Organization: . Lines: 60 Message-ID: References: Reply-To: "Ligia Pimentel" X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/27 X-Sequence-Number: 9304 update table1 set price = table2.price where table1.productId = table2.productId; (Of course, both tables must have a different name). :) Ligia ""Yudieg@hotmail.com"" wrote in message news:OE50r7MoNYXRRS6HtHO00000811@hotmail.com... > This is a multi-part message in MIME format. > > ------=_NextPart_000_00AA_01C2533B.BE837FA0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi, > Let say I have 2 Product table, both of them has columns ProductID and Price > What is the update command if I want to update all Prices of first table to= > be equal with Price in second table? > > Please Help. > > Yudie > ------=_NextPart_000_00AA_01C2533B.BE837FA0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > > > > > >
Hi,
>
Let say I have 2 Product table, both of th= > em has=20 > columns ProductID and Price
>
What is the update command if I want to up= > date=20 > all Prices of first table to be equal with Price in second=20 > table?
>
 
>
Please Help.
>
 
>
Yudie
> > ------=_NextPart_000_00AA_01C2533B.BE837FA0--