insert into tables 
select a.a,a.b 
from tab_a a,
     (select t.c,t.d from tab_b b) temp
where a.a=temp.c
我插入一条类似这样的语句,但是执行了很久都没有执行完,也没有任何锁定。
后来我创建了一个视图
create view v_tab
as
select a.a,a.b 
from tab_a a,
     (select t.c,t.d from tab_b b) temp
where a.a=temp.c;
视图很快建完了,然后insert into tables select * from v_tab;几秒钟就执行完了。
或者
Insert into tables 
select * from (select a.a,a.b 
from tab_a a,
     (select t.c,t.d from tab_b b) temp
where a.a=temp.c);也很快就执行完了,单独执行select 语句也几秒钟就可以了,但是就是插入不行,这是为什么呢?谁能帮我解决这个问题。