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: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 11 Aug 2006 09:37:02 -0700
Message-ID: <1155314223.322213@bubbleator.drizzle.com>


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;?

Do you contributions here mean you've finally installed a copy of Oracle or are you just guessing at syntax? ;-)

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Aug 11 2006 - 11:37:02 CDT

Original text of this message

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