MySQL Forums
Forum List  »  Newbie

Query completion
Posted by: Sophie DB44
Date: January 29, 2018 11:29AM

Hi,

I'm creating a new table using the following query:
create table new_table(unique (ID)) as (select table1.ID as ID,table2.VALUE as VALUE from table1,table2 where table1.PARAM=table2.PARAM);

It is worth noting that table1.ID and table2.PARAM are UNIQUE.

table1 has about 12 millions rows and table2 has about 6 millions rows.

The query is lasting and I wanted to have an idea about its completion.

So I looked at the "Number of rows inserted" from "SHOW ENGINE INNODB STATUS" but I got a value that is over 12 millions...

What did I do wrong ? Any idea someone ?

Thx !

Options: ReplyQuote


Subject
Written By
Posted
Query completion
January 29, 2018 11:29AM
January 29, 2018 12:01PM
January 29, 2018 12:17PM
January 29, 2018 01:27PM
January 29, 2018 02:26PM
January 29, 2018 02:49PM
January 29, 2018 03:17PM
January 29, 2018 03:58PM
January 30, 2018 02:25AM
January 30, 2018 10:20AM
January 30, 2018 02:36AM
January 30, 2018 02:42AM


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.