虚位以待(AD)
虚位以待(AD)
首页 > 数据库 > Oracle数据库 > Oracle隐式游标简析

Oracle隐式游标简析
类别:Oracle数据库   作者:码皇   来源:互联网   点击:

Oracle隐式游标简析create or replace procedure 隐式游标 as flag CHAR := & 39;U& 39; ;beginif SQL%found then update table3 set TANAME=& 39;问问& 39; where taid=1; commit; flag :
Oracle隐式游标简析   create or replace procedure 隐式游标 as   flag CHAR := 'U' ; begin  if SQL%found then   update table3 set TANAME='问问' where taid=1;   commit;     flag :='I';   insert into table3(taid,taname,bqid) values(4,'人事部',2);   commit;  www.2cto.com     end if;      if flag ='U' then    dbms_output.put_line('表已更新');   ELSE   dbms_output.put_line('记录已插入');   end if;  end 隐式游标;     作者 勇往直前102002
相关热词搜索: Oracle 隐式 游标