当前位置:首页 > 基于java_ATM机_银行存取款系统的设计与实现(含源文件)
)
initrans 2 maxtrans 255 storage (
initial 64K minextents 1
maxextents unlimited );
存储过程
create or replace procedure p_yh( --pl/sql存储过程 --用于对用户表
--进行 更新密码和余额 操作 v_rmark in number,--判定操作 --v_shijian in varchar2,--//操作时间 v_huming in varchar2,--户名 v_mima in varchar2,--用户密码 v_yue in number--//剩余金额 ) is
-- Local variables here
begin
-- Test statements here if(v_rmark=1)then
insert into yonghu values(v_huming,v_mima,v_yue,sysdate); elsif(v_rmark=2)then
update yonghu set mima=v_mima where huming=v_huming; else
update yonghu set yue=yue+v_yue where huming=v_huming; end if; commit; end;
create or replace procedure p_ls( --pl/sql存储过程 --用于对历史表
--进行 存储 删除 操作
v_rmark in number,--判定操作 --v_shijian in varchar2,--//操作时间 v_huming in varchar2,--户名 v_caozuo in varchar2,--用户操作 v_yue in number--//操作金额
37
)
) is
-- Local variables here begin
-- Test statements here if(v_rmark=1)then--存储 insert into lishi values(to_char(systimestamp,'yyyy-mm-dd hh24:mi:ss'),v_huming,v_caozuo,v_yue); else--删除
delete from lishi where huming=v_huming; end if; commit; end;
38
共分享92篇相关文档