PL-SQL存储过程与函数.docVIP

  • 1
  • 0
  • 约8.56千字
  • 约 6页
  • 2015-08-07 发布于湖北
  • 举报
PL/SQL存储过程与函数 1、存储过程 存储过程的参数 形式参数和实际参数,例如,有如下一个存储过程,该过程接收一个作家代码和一个工资值,将该作家的工资改为接收到的工资值。 Java代码 create?or?replace?procedure?updateauths( ?? ??p_authscode?auths.author_code%type, ?? ??p_authssalary?auths.salary%type) ?? as ?? begin ?? ??update?auths?set?salary=p_authssalary?where?author_code=p_authscode; ?? ??commit; ?? end?updateauths;?? create or replace procedure updateauths( p_authscode auths.author_code%type, p_authssalary auths.salary%type) as begin update auths set salary=p_authssalary where author_code=p_authscode; commit; end updateauths; 下面的PL/SQl块调用updateauths存储过程,将代码为A00011

文档评论(0)

1亿VIP精品文档

相关文档