Vous êtes sur la page 1sur 1

create table temp_2014_3_company_article_mapping_1 like 2014_3_company_article_m apping; insert into temp_2014_3_company_article_mapping_1 (select b.

* from temp_article_ 2014_3_1 a, company_article_mapping b where a.id=b.article_id); insert into temp_2014_3_company_article_mapping_1 (select b.* from temp_article_ 2014_3_1 a, 2014_3_company_article_mapping b where a.id=b.article_id);

create table temp_2014_3_company_article_mapping_2 like 2014_3_company_article_m apping; insert into temp_2014_3_company_article_mapping_2 (select b.* from temp_article_ 2014_3_2 a, 2014_4_company_article_mapping b where a.id=b.article_id); insert ignore into temp_2014_3_company_article_mapping_2 (select b.* from temp_a rticle_2014_3_2 a, 2014_3_company_article_mapping b where a.id=b.article_id);

create table temp_2014_3_company_article_mapping_3 like 2014_3_company_article_m apping; insert into temp_2014_3_company_article_mapping_3 (select b.* from temp_article_ 2014_3_3 a, 2014_4_company_article_mapping b where a.id=b.article_id); insert ignore into temp_2014_3_company_article_mapping_3 (select b.* from temp_a rticle_2014_3_3 a, 2014_3_company_article_mapping b where a.id=b.article_id); create table temp_2014_3_company_article_mapping_4 like 2014_3_company_article_m apping; insert into temp_2014_3_company_article_mapping_4 (select b.* from temp_article_ 2014_3_4 a, 2014_4_company_article_mapping b where a.id=b.article_id); insert ignore into temp_2014_3_company_article_mapping_4 (select b.* from temp_a rticle_2014_3_4 a, 2014_3_company_article_mapping b where a.id=b.article_id);