开源俱乐部

开源框架
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Oracle PL/SQL 存储过程一般写法

Posted on 2007-06-29 14:49 HandSoft 阅读(3920) 评论(0)  编辑  收藏

procedure

begin
  BEGIN   
    SELECT attribute5
           INTO l_list_name
    FROM   qp_list_headers_all
    WHERE list_header_id = p_list_header_id ;
  exception
    when others then
      raise targetListNameError;
  end;
exception

    WHEN targetListNameError THEN
      -- fnd_file.put_line(fnd_file.output , rpad(upload_list.item_number,20,' ')
      --                                      ||'Start date should later than the current latest effective start data of the target price list.');      --此信息输出到EBS平台中View Output中。fnd_file.log:  输出到Log中
      dbms_output.put_line('Target List is Null!');            --注意: 此信息用于输出到PL/SQL Developer控制台中。
END;


只有注册用户登录后才能发表评论。


网站导航: