/*不带任何参数存储过程(输出系统日期)*/
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;

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-03-10
  • 2022-02-26
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案