游标:
  就是一个结果集(ResultSet)

游标语法:

  CURSOR 光标名 [(参数名 数据类型[,参数名 数据类型])] IS SELECT 语句;


  
关闭游标释放资源:close c1;

光标的属性:
  %found %notfound
  %isopen:光标是否打开
  %rowcount:影响的行数 (已经取走的记录数)
光标数的限制:
  oracle数据库默认只允许在同一个会话中,打开300个光标,可修改
  查看:(必须是管理员身份登录)
  show parameter cursor
  返回结果:
    NAME TYPE VALUE
    ------------------------------------ ----------- ---------------------------
    cursor_sharing string EXACT
    cursor_space_for_time boolean FALSE
    open_cursors integer 300
    session_cached_cursors integer 50

 

相关文章:

  • 2021-11-21
  • 2021-10-05
  • 2021-12-02
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-09-28
  • 2021-04-13
  • 2021-11-15
相关资源
相似解决方案