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 12:47:25 -0400
Message-ID: <4k3qivFaeqjfU1@individual.net>


DA Morgan wrote:
> Serge Rielau wrote:

>> Here are a couple of wild guesses:
>>
>> UPDATE emp SET sal = 1 WHERE rownum <= 1

>
> Fascinating logic. Less than or equal to ...
>
> How does that differ from WHERE rownum = 1;?
Much more interesting than your nit would be whether one of my proposals works.
And, no, I don't have Oracle installed any more than you have IDS installed. At least my contributions are constructive. :-)

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 - 11:47:25 CDT

Original text of this message

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