2015-07-10 66 views

回答

1

是的,可以使用CTAS(create table new_table as select ...)语法。

create table new_table as select * from customer_table,issues_table where customer_table.CustomedId = issues_table.CustomedId;

0

使用此查询在生产中运行它。我拥有数百万条记录,它的工作没有任何麻烦和快速。充分测试。

create table new_table as select * from customer_table t1 where t1.CustomedId NOT IN (Select t2.CustomedId FROM issues_table t2); 
相关问题