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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Inserstatement [lock/update subquery]

RE: Inserstatement [lock/update subquery]

From: Eric D. Pierce <PierceED_at_csus.edu>
Date: Wed, 28 Nov 2001 16:00:16 -0800
Message-ID: <F001.003CFBBB.20011128145525@fatcity.com>

Roland.Skoldblom_at_ica.se & folks,

also, don't forget something along these lines:

squeal> whenever sqlerror exit sql.code ;
squeal> LOCK TABLE x in exclusive mode nowait ; /* piss off users */
squeal> whenever sqlerror continue ;


> ORACLE-L Digest -- Volume 2001, Number 332
> ------------------------------------------
> >> From: Roland.Skoldblom_at_ica.se
> >> Date: Tue, 27 Nov 2001 12:45:39 +0100
> >> Subject: Inserstatement

...

 | update 
 |        x
 |    set 
 |        field =
 |      ( 
 |        select 
 |               field1
 |          from 
 |               p
 |         where 
 |               p.join_field = x.join_field
 |      )
 | where 
 |       x.join_field in
 |     ( 
 |       select 
 |              p.join_field
 |         from 
 |              p
 |     )

...

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Eric D. Pierce
  INET: PierceED_at_csus.edu

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Nov 28 2001 - 18:00:16 CST

Original text of this message

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