oracle11g游标修改,oracle11g游标及触发器相关知识

oracle11g游标及触发器相关知识

statement1;

statement2;

end loop;

14.declare

cursor emp_cursor(v_deptno NUMBER) is

select ename,sal from emp where deptno=v_deptno;

begin

for emp_record in emp_cursor(20) loop

dbms_output.put_line(emp_record.ename||’

是’||emp_record.sal);

end loop;

end;

15.cursor cursor_name is select_statement

for update [of column_reference][nowait]

在游标结果集上加锁,NOWAIT子句指定不等待锁,也就是如

果要加锁的数据已经被锁定,则不等待直接返回。

将显示游标行中的当前行修改或者删除,更新或删除的语法

如下:

update table_name set column=..

where current of cursor_name;

delete from table_name where current of cursor_name;

的薪水

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值