MySQL Forums
Forum List  »  Quality Assurance

Update with Join very slow
Posted by: Tatenda Chagonda
Date: March 11, 2012 03:17AM

I have 2 tables

Table A has 52 million records and table B has 30 Million Records

Table A has a primary key on ID number and Table B also have a primary key on ID Number

I want to update Table A with a column thats in table b and the query has been running for 2 days now. Please see the query below

UPDATE TableA a JOIN TableB b ON a.IDNo = b.IDNo
SET a.CellNo = b.CellNo

Options: ReplyQuote

Written By
Update with Join very slow
March 11, 2012 03:17AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.