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

Home -> Community -> Usenet -> c.d.o.server -> Re: Limit UPDATE statements to affect only one row

Re: Limit UPDATE statements to affect only one row

From: Serge Rielau <srielau_at_ca.ibm.com>
Date: Fri, 11 Aug 2006 22:20:50 -0400
Message-ID: <4k4s69Faa9p4U1@individual.net>


DA Morgan wrote:
> I often find using a valid syntax improves things in Oracle.
> Perhaps that isn't required with DB2.
>
> UPDATE (
> SELECT sal
> FROM emp)
> SET sal = 1
> WHERE rownum = 1;

*sigh*I give up. It's like discussing Kant with my cat. All I ever get is Meaow!

Cheers
Serge

-- 
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ondemandbusiness/conf2006/
Received on Fri Aug 11 2006 - 21:20:50 CDT

Original text of this message

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