使用JSP+servLet实现宠物管理系统,oraC1e11g作为后台数据厍,实现查看宠物和增加宠物的功能由你实现,如图:其中宠物包栝:狗、猫、鸟、鼠具体要求及推荐实现步骤第一步:创建数据库代码:create table pet(petId number(10) not null ...
使用JSP+servLet实现宠物管理系统,oraC1e11g作为后台数据厍,实现查看宠物和增加宠物
其中宠物包栝:狗、猫、鸟、鼠
具体要求及推荐实现步骤
第一步:创建数据库代码:
create table pet(petId number(10) not null primary key, --idpetName varchar2(50) not null, --昵称petBread varchar(50) not null, --品种petSex varchar(10) not null, --性别birthday date not null, --出生日期description varchar(400) --描述)--序列自增create sequence pet_squstart with 1increment by 1nomaxvaluecache 10;drop table pet --删除宠物表drop sequence pet_squ --删除序列--插入数据insert into pet values ('1','aa','狗','雄',to_date('2015-05-26','yyyy-mm-dd'),'聪明的拉布拉多犬');insert into pet values (pet_squ.nextval,'bb','猫','雄',to_date('2015-05-26','yyyy-mm-dd'),'可爱的加菲猫');insert into pet values (pet_squ.nextval,'cc','鸟','雄',to_date('2015-05-26','yyyy-mm-dd'),'活泼的鸟');insert into pet values (pet_squ.nextval,'dd','鼠','雄',to_date('2015-05-26','yyyy-mm-dd'),'可爱的小白鼠');insert into pet values (pet_squ.nextval,'ee','猫','雄',to_date('2015-05-26','YYYY-MM-dd'),'可爱的加菲猫');select * from pet --查询所有宠物
原标题:Java_Web之宠物管理系统
关键词:JAVA
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。