应用开发

ORACLE存储过程创建的语法及注意事项

时间:2010-12-5 17:23:32  作者:IT科技类资讯   来源:数据库  查看:  评论:0
内容摘要:复制createorreplaceprocedure存储过程名param1intype,param2outtype) as 变量1类型值范围);

ORACLE存储过程创建的语法及注意事项
复制create or replace procedure 存储过程名(param1 in type,存储创建param2 out type)   as   变量1 类型(值范围);   变量2 类型(值范围);   Begin   Select count(*) into 变量1 from 表A where列名=param1;   If (判断条件) then   Select 列名 into 变量2 from 表A where列名=param1;   Dbms_output。源码下载过程Put_line(‘打印信息’);   Elsif (判断条件) then   Dbms_output。b2b信息网法及注意Put_line(‘打印信息’);   Else   Raise 异常名(NO_DATA_FOUND);   End if;   Exception       When others then          Rollback;   End;   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.免费源码下载
copyright © 2025 powered by 编程之道  滇ICP备2023006006号-34sitemap