create table users(
username varchar(20) primary key,
password varchar(20),
confirmpassword varchar(20),
email varchar(20)
);
create table books(
bookNo int primary key,
bookName varchar(20),
bookAuthor varchar(20),
bookPrice float,
bookFirstType varchar(20),
bookSecondType varchar(20),
numberOFread int,
timeOFupload varchar(20),
statusOFborrow varchar(20),
username varchar(20),
constraint FK_1 foreign key(username)
references users(username)
);
insert into users (username,password,confirmpassword,email) values ('LK',123456,123456,123456789);
insert into users (username,password,confirmpassword,email) values ('LLL',123456,123456,123456789);
insert into users (username,password,confirmpassword,email) values ('null','','','');
insert into books values(1,'听你的','张皓宸',41.5,'青春文学','爱情',17,'20180501','yes','LK');
insert into books values(2,'余生很长,何必慌张','林熙',28.1,'青春文学','爱情',20,'20180301','yes','LK');
insert into books values(3,'默读','priest',33.4,'青春文学','悬疑',60,'20180201','yes','LLL');
insert into books values(4,'七根凶简','尾鱼',28.7,'青春文学','悬疑',5,'20180301','no','null');
insert into books values(5,'张公案','大风刮过',65.2,'青春文学','悬疑',46,'20170101','no','null');
insert into books values(6,'你的名字','新海诚',23.5,'青春文学','国外青春文学','15','20170110','no','null');
insert into books values(7,'星之声','新海诚',19.8,'青春文学','国外青春文学','85','20151001','no','null');
insert into books values(8,'素描的诀窍','伯特·多德森',65.2,'艺术','绘画','15','20170110','no','null');
insert into books values(9,'Python从入门到实践','埃里克·马瑟斯',62.0,'科技','计算机','35','20160701','no','null');
insert into books values(10,'深度学习','伊恩·古德费洛',126.0,'科技','计算机','54','20170701','no','null');
insert into books values(11,'时间简史','史蒂芬·霍金',31.1,'科技','科普读物','53','20140601','no','null');
insert into books values(12,'果壳中的宇宙','史蒂芬·霍金',29.0,'科技','科普读物','7','20140601','no','null');
insert into books values(13,'图解本草纲目','李时珍',19.7,'科技','医学','81','20130901','no','null');
insert into books values(14,'原则','瑞·达利欧',60.8,'经管','管理学','125','20180101','no','null');
insert into books values(15,'见识','吴军',30.0,'经管','管理学','256','20180301','no','null');
insert into books values(16,'深度工作','卡尔·纽波特',27.0,'经管','管理学','89','20170901','no','null');
insert into books values(17,'秘密花园','乔汉娜贝斯福',31.5,'艺术','绘画','48','20150601','no','null');
insert into books values(18,'钢琴基础教程','李晓平',23.8,'艺术','音乐','48','20150601','no','null');
insert into books values(19,'千年金融史','威廉·戈兹曼',52.3,'经管','金融','67','20170501','no','null');
insert into books values(20,'证券分析','本杰明·格雷厄姆',78.0,'经管','金融','6','20130401','no','null');
select * from books ORDER BY numberOFread;
select * from books WHERE bookName like'%时%';
show variables like '%char%';
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
图书借阅管理系统.zip (77个子文件)
login4 带分类
login2
图书管理信息mysql.txt 2KB
login
.project 905B
.settings
.jsdtscope 567B
org.eclipse.core.resources.prefs 74B
org.eclipse.wst.common.component 467B
org.eclipse.jdt.core.prefs 670B
org.eclipse.wst.common.project.facet.core.xml 305B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
src
com
bean
book.java 2KB
user1.java 690B
servlet
userServlet.java 2KB
findBookNameServlet.java 3KB
findBookPriceServlet.java 3KB
zhuceServlet.java 2KB
borrowServlet.java 2KB
findBookBYfirstTypeServlet.java 3KB
findBookBYnumberServlet.java 3KB
findBookBYtypeServlet.java 3KB
returnServlet.java 3KB
findBookServlet.java 3KB
returnBookServlet.java 3KB
findBookAuthorServlet.java 3KB
Dao
DBOperate.java 6KB
TestDBConnection.java 2KB
build
classes
com
bean
book.class 2KB
user1.class 1KB
servlet
findBookPriceServlet.class 4KB
returnServlet.class 2KB
findBookNameServlet.class 3KB
borrowServlet.class 2KB
findBookAuthorServlet.class 4KB
findBookServlet.class 3KB
findBookBYfirstTypeServlet.class 3KB
returnBookServlet.class 3KB
userServlet.class 2KB
findBookBYtypeServlet.class 3KB
zhuceServlet.class 2KB
findBookBYnumberServlet.class 3KB
Dao
TestDBConnection.class 1KB
DBOperate.class 5KB
WebContent
Borrow.jsp 673B
returnSuccess.jsp 437B
zhuce.jsp 2KB
WEB-INF
lib
mysql-connector-java-5.0.4-bin.jar 484KB
classes
META-INF
MANIFEST.MF 39B
returnFail.jsp 437B
bookPrice.jsp 2KB
Login.jsp 2KB
zhuceSuccess.jsp 418B
BorrowSuccess.jsp 390B
numberOFread.jsp 2KB
bookName.jsp 2KB
bookType.jsp 2KB
bookAuthor.jsp 2KB
returnBook.jsp 3KB
LoginFail.jsp 392B
num
1.gif 157B
8.gif 79B
7.gif 75B
0.gif 138B
4.gif 208B
3.gif 209B
5.gif 79B
2.gif 79B
6.gif 79B
9.gif 149B
zhuceFail.jsp 466B
timeOFupload.jsp 2KB
LoginSuccess.jsp 889B
banner.jsp 6KB
BorrowFail.jsp 390B
.classpath 866B
新.txt 3KB
图书管理信息mysql.txt 1KB
my.ini 9KB
带分类mysql.txt 2KB
共 77 条
- 1
资源评论
- Ye_zero2292019-03-05还不清楚,调试看看
- ♚离人2018-12-21为什么登陆永远不成功,可以加QQ细聊吗qq_351841912019-03-28你可能在数据库的连接方面有问题,没有连接到数据库的话就无法读取存储的用户信息和密码,也就登录不上了。
qq_35184191
- 粉丝: 2
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功