Performing a JOIN in an Update Statement (HELP)
From: KPK <kpkeller_at_linuxmail.org>
Date: 22 May 2002 07:29:38 -0700
Message-ID: <6f5ea0d.0205220629.30ffd4d8_at_posting.google.com>
Date: 22 May 2002 07:29:38 -0700
Message-ID: <6f5ea0d.0205220629.30ffd4d8_at_posting.google.com>
Hello All:
I am trying to perform an INNER JOIN in an update statement in Oracle 8.
I can't seem to get the format just right.
Can anyone help?
Here are the formats I've tried but failed at getting to work:
Example 1:
colC = table2.colC
Example 2:
update Table1
set colB = table2.colB,
From Table2
Where Table1.ColA = Table2.ColA
update Table1
colC = table2.colC
Where Table1.ColA IN (SELECT Table2.ColA From Table2)
No good. Can anyone help?
As you can see, I'm updating table1 with some records from table2.
Received on Wed May 22 2002 - 16:29:38 CEST