java_ATM机银行存取款系统的设计与实现本科毕业论文

发布时间 : 星期日 文章java_ATM机银行存取款系统的设计与实现本科毕业论文更新完毕开始阅读

商丘师范学院2012届本科毕业论文(设计)

操作 \+ \账户余额 \ +\); for(int i=0;i

Oracle部分:

建表:

-- Create table create table LISHI (

shijian VARCHAR2(50), huming VARCHAR2(15), caozuo VARCHAR2(100), yue NUMBER )

tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage (

initial 64K minextents 1

maxextents unlimited );

-- Create/Recreate primary, unique and foreign key constraints alter table LISHI

add constraint 户名外键 foreign key (HUMING)

37

商丘师范学院2012届本科毕业论文(设计)

references YONGHU (HUMING);

-- Create table

create table YONGHU (

huming VARCHAR2(15) not null, mima VARCHAR2(15),

yue NUMBER default 10000, shijian DATE )

tablespace USERS pctfree 10 initrans 1 maxtrans 255 storage (

initial 64K minextents 1

maxextents unlimited );

-- Create/Recreate primary, unique and foreign key constraints alter table YONGHU

add constraint 户名 primary key (HUMING) using index

tablespace USERS pctfree 10 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,--户名

38

商丘师范学院2012届本科毕业论文(设计)

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--//操作金额 ) 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;

39

商丘师范学院2012届本科毕业论文(设计)

毕业设计(论文)原创性声明和使用授权说明

原创性声明

本人郑重承诺:所呈交的毕业设计(论文),是我个人在指导教师的指导下进行的研究工作及取得的成果。尽我所知,除文中特别加以标注和致谢的地方外,不包含其他人或组织已经发表或公布过的研究成果,也不包含我为获得 及其它教育机构的学位或学历而使用过的材料。对本研究提供过帮助和做出过贡献的个人或集体,均已在文中作了明确的说明并表示了谢意。

作 者 签 名: 日 期: 指导教师签名: 日 期:

使用授权说明

本人完全了解 大学关于收集、保存、使用毕业设计(论文)的规定,即:按照学校要求提交毕业设计(论文)的印刷本和电子版本;学校有权保存毕业设计(论文)的印刷本和电子版,并提供目录检索与阅览服务;学校可以采用影印、缩印、数字化或其它复制手段保存论文;在不以赢利为目的前提下,学校可以公布论文的部分或全部内容。

作者签名: 日 期:

40

联系合同范文客服:xxxxx#qq.com(#替换为@)