2015-07-10 57 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); 
相關問題