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: multiple update

Re: multiple update

From: scud <i_scud_at_hotmail.com.spam>
Date: Tue, 16 Apr 2002 10:32:37 +0000 (UTC)
Message-ID: <a9guk5$rpp$1@knossos.btinternet.com>


thanks Knut - that worked ok

"Knut Talman" <knut.talman_at_mytoys.de> wrote in message news:3CBBF962.AC630740_at_mytoys.de...
> > I'm trying to update the records of multiple users in my database
> > with this query. The problem is that i have about 2000 email addresses
and
> > will therefore need to update each one individualy.
> > Is there a way to change this query so that
> > e.g."where email = 'list, of , emails'
> >
> > UPDATE USERS set NEWS_P = 't', NEWS_HTML_P = 't'
> > where email = 'test_at_test.com';
>
> WHERE email IN ('email1','email2','email3',...);
>
> (if you want to set NEWS_P and NEWS_HTML_P to the same values for every
email
> address in your list).
>
> Regards,
>
> Knut
Received on Tue Apr 16 2002 - 05:32:37 CDT

Original text of this message

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