十利用JDBC进行Oracle访问.pptVIP

  • 0
  • 0
  • 约5.96千字
  • 约 29页
  • 2017-04-05 发布于江苏
  • 举报
十利用JDBC进行Oracle访问

课程目标 掌握基本的数据库配置和管理 熟练掌握 SQL 命令和 SQL 函数 理解 Oracle 数据库体系结构 使用 Oracle 的各种数据库对象 使用 PL/SQL 编写存储过程 使用 PL/SQL 编写触发器 掌握基本的Oracle数据库管理 目标 获得查询结果集 关闭数据流 创建 CallableStatement 对象 INOUT参数 处理SQL异常 小结 简例 2)编写程序。利用UPDATE语句和WHERE条件中的CURRENT OF子句。 SQL declare 2 cursor salcur(depno number) is 3 select sal from emp where deptno =depno for update of sal; 4 new_sal number; 5 begin 6 for currentsal in salcur(20) loop 7 new_sal:=currentsal.sal; 8 update emp set sal=1.1*new_sal where current of salcur; 9 end loop; 10 commit; 11 end; 12 /

文档评论(0)

1亿VIP精品文档

相关文档