Re: what is the fastest way to update a big table (50000rows*20columns)

From: Roel Toledo <dontsendmailstome_at_bogusmail.com>
Date: Thu, 01 Nov 2001 03:35:15 GMT
Message-ID: <Tp3E7.166944$W8.5057768_at_bgtnsc04-news.ops.worldnet.att.net>


correction to the code:

   UPDATE cs c
   SET source=(SELECT j.source

                       FROM JOIN j
                      WHERE j.totid = c.totid)
  WHERE totid IN (SELECT totid FROM join
                               WHERE source IS NOT NULL);     <<<<< added


Roel Received on Thu Nov 01 2001 - 04:35:15 CET

Original text of this message