在空表中写如下匿名块 declare
cursor c is select id from sun_t;
begin
for v_c in c
loop
if(c%rowcount <>10)then
insert into sun_t(id) values (0);
dbms_output.put_line(c%rowcount);
end if;
end loop;
end;
为什么没有值插入????
我想知道c%rowcount返回个什么东西??
cursor c is select id from sun_t;
begin
for v_c in c
loop
if(c%rowcount <>10)then
insert into sun_t(id) values (0);
dbms_output.put_line(c%rowcount);
end if;
end loop;
end;
为什么没有值插入????
我想知道c%rowcount返回个什么东西??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货