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: Knut Talman <knut.talman_at_mytoys.de>
Date: Tue, 16 Apr 2002 12:13:54 +0200
Message-ID: <3CBBF962.AC630740@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:13:54 CDT

Original text of this message

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