一、 dataBase端开发介绍:
package分为两个部分:1、package head,2、package body。前者为包头的定义,后者为过程及方法的实体。只要包头定义中描述足够详细,可以隐藏包体的细节。举例如下:
package head pkg_topnet
is
--user define data type—
--用户自定义数据类型--
--user define procedure and function—
--用户自定义过程和函数—
--the procedure proc_password_validate is the process ofpassword validate—
--the param log_id is the pa_id coloum—
--the param log_pass is the pb_yhpwd coloum—
--the param member_name is the pb_name coloum—
--if the member_name is return value “none”,it indicate that the—
--login process has been crash—
--proc_password_validate过程用于密码的验证—
--参数log_id为pa_id字段—
--参数log_pass为pb_yhpwd字段—
--参数member_name为pb_name字段—
--如果member_name的返回值为”none”,则说明验证过程出错--
procedure proc_password_validate(
log_id in number,
log_pass in varchar2,
member_name out varchar2