方法:可以在select into前做个判断是否为空,在进行插入
1.设置变量 x
2.
select (1) into x from xx;
if x!=0 then
select a into b from xx;