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: Looping through the users table

Re: Looping through the users table

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 12 Jan 2006 15:06:27 -0800
Message-ID: <1137107185.985998@jetspin.drizzle.com>


Moti Moskovich wrote:
> All,
> I'm new to Oracle and I would like to find a way to create a script that
> will loop through a list of users (the output of a select query from the
> users system table) and remove each one of them.
>
> Thanks in advance.

In what version of Oracle?

In 8i or before a cursor loop and update In 9i or after bulk collect and forall

In any version ... use a simple DML statement if you don't really require the loop.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Jan 12 2006 - 17:06:27 CST

Original text of this message

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