If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Updating 100K data against 1M data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-13-06, 01:48
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Updating 100K data against 1M data

Greetings,
I have a table with millions of data with this structure:
callrequest (
serialno varchar(20) default '0',
callno varchar(20) default null
). Currently this table has no callno for some of the records

Another temporary table with the same structure, holds a temporary data around 100K records, and this data will be purged daily, as data keeps on coming everyday around 100K and update callno in the main table


How can i do that with a very efficient way. Thank you
Reply With Quote
  #2 (permalink)  
Old 09-13-06, 06:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
have you seen the multi-table UPDATE syntax in the manual? that will do what you want
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On