如何获取被更新的记录数 execute immediate 'update ' || v_table || ' set fount=fount+1 where idi=''' || v_code || '''';之后,如何获取被更新的记录数?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from v_table where idi=v_code declare icount number;begin execute immediate 'update ' || v_table || ' set fount=fount+1 where idi=''' || v_code || ''''; select count(1) into icount from v_table where idi=v_code; dbms_output.put_line(icount);end; 可以直接在提交数据前使用变量 := SQL%ROWCOUNT 即可.这是个查询操作记录数的东东.. select count(*) from v_table where idi=v_code 可以直接在提交数据前使用变量 := SQL%ROWCOUNT 即可.这是个查询操作记录数的东东..同意!! 数据库实例问题 Oracle唯一约束问题? 请问oracle10g有内置apache服务器么? oracle 日期转换问题 database 跟 instance 怎么对应起来(RAC) 求教dbms_output.put_line中如何输出制表符等特殊字符? 幼稚问题 TNS:无法处理服务名? 服务器掉电后oracle9i for win2000数据库不能启动??? 新装的 oracle 侦听配不对是什么原因? 有关sqlldr命令的问题,不知道ctl文件该如果写,请高手帮忙. 如何调整SYSDATE?
icount number;
begin
execute immediate 'update ' || v_table || ' set fount=fount+1 where idi=''' || v_code || '''';
select count(1) into icount from v_table where idi=v_code;
dbms_output.put_line(icount);
end;
变量 := SQL%ROWCOUNT
即可.这是个查询操作记录数的东东..
变量 := SQL%ROWCOUNT
即可.这是个查询操作记录数的东东..
同意!!