2013年4月18日

存储过程

摘要: 存储过程 存储过程是一种命名pl/sql程序块,它可以被赋予参数,存储在数据库中,可以被用户调用.由于存储过程是已编译好的代码,所以在调用的时候不必再次编译代码,从而提高程序的运行效率。另外存储过程可以实现程序的模块化设计.1、 创建存储过程语法: Create [or replace] procedure procedure_name[ (parameter[{in|in out}]) data_type, (parameter[{in|in out}]) data_type, ……]{ is|as}Decoration sectionBegin Executable section;Exc 阅读全文
posted @ 2013-04-18 19:39 loveshuang 阅读(212) 评论(0) 推荐(0)

帮你快速理解存储函数、存储过程、触发器

摘要: 存储过程、存储函数、触发器一、创建存储过程1、创建存储过程create procedure isertEmp as begin insert into emp values(9888,'www','SDF',null,null,null,500,20); commit; end; /2、创建或替换存储过程create or replace procedure isertEmp as begin insert into emp values(9888,'www','SDF',null,null,null,500,20); commi 阅读全文
posted @ 2013-04-18 19:38 loveshuang 阅读(432) 评论(0) 推荐(0)