当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
Oracle存储过程简单实例
发布时间:2010/10/29 10:37:14 来源:城市学习网 编辑:ziteng
  /*不带任何参数存储过程(输出系统日期)*/
  create or replace procedure output_date is
  begin
  dbms_output.put_line(sysdate);
  end output_date;
  /*带参数in和out的存储过程*/
  create or replace procedure get_username(v_id in number,v_username out varchar2)
  as
  begin
  select username into v_username from tab_user where id = v_id; --变量赋值
  exception
  when no_data_found then
  raise_application_error(-20001,'ID不存在!');
  end get_username;
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved