Hi everybody,
this is my first post on this forum but i hope my question will help other developer.
I'm working on a amazon AWS linux machine, i've a big database with many table.
One of those have 1,2 million rows and another 600.000, i want to update IDCOMPANY field on first table with a value obtained from the second one using a matching field.
My query is:
UPDATE detaildata
INNER JOIN company
ON detaildata.col2=company.globalid
SET detaildata.companyid =company.id
I tryed but seems that it take a lot of times (more than 2 days), in mysql process list i can see the process loked, there is something wrong?
What's the better way to do it?
Thanks a lot
this is my first post on this forum but i hope my question will help other developer.
I'm working on a amazon AWS linux machine, i've a big database with many table.
One of those have 1,2 million rows and another 600.000, i want to update IDCOMPANY field on first table with a value obtained from the second one using a matching field.
My query is:
UPDATE detaildata
INNER JOIN company
ON detaildata.col2=company.globalid
SET detaildata.companyid =company.id
I tryed but seems that it take a lot of times (more than 2 days), in mysql process list i can see the process loked, there is something wrong?
What's the better way to do it?
Thanks a lot