Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: UPDATE... SET... FROM x

Re: UPDATE... SET... FROM x

From: gilb <gilbertcj_at_gmail.com>
Date: 22 Nov 2005 09:20:02 -0800
Message-ID: <1132680002.208634.242190@o13g2000cwo.googlegroups.com>


Slight error sorry, should have been the following to allow for multiple columns.

update twr3_01.orapropertymonthlyderived opmd set (opmd.m32) =
(
  select nvl(opmd.m32, m32)
  from twr3_01.orapropertymonthlyderived

  where opmd.ipdref =	ipdref AND
  opmd.periodendmonth =	periodendmonth AND
  opmd.periodendyear = periodendyear AND
  opmd.snapshotref = snapshotref AND
  opmd.datastatetypecode = datastatetypecode AND
  opmd.sampleref = sampleref AND
  opmd.periodendfrequency 	=	periodendfrequency AND
  m70 = 1
); Received on Tue Nov 22 2005 - 11:20:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US