Write A -> C insert into C (select * from B where b.id not in (select a.id from a)); 我的表很大,而且数据链接很慢,所以这样做是不可行的,因为它需要很长时间我假设问题是它必须为B的每个条目执行(select a.id from a),所以我认为使用<e
insert into A (...) values (...);
With cte as (select A.column...)update A set ... if condition1(includes cte table) update A set ... if condition3(includes cte table)