1
- drop database if exists Library ;
1
+ drop database if exists library ;
2
2
3
- create database Library default charset utf8;
3
+ create database library default charset utf8;
4
4
5
- use Library ;
5
+ use library ;
6
6
7
- create table TbBook
7
+ create table tb_book
8
8
(
9
9
bookid integer primary key auto_increment,
10
10
title varchar (100 ) not null ,
@@ -16,16 +16,16 @@ lenddate datetime,
16
16
lendcount integer default 0
17
17
);
18
18
19
- insert into TbBook (title, author, publisher, price, lendcount) values (' Java核心技术(卷1)' , ' 凯 S.霍斯特曼' , ' 机械工业出版社' , 98 .2 , 102 );
20
- insert into TbBook (title, author, publisher, price, lendcount) values (' Java编程思想' , ' 埃史尔' , ' 机械工业出版社' , 86 .4 , 87 );
21
- insert into TbBook (title, author, publisher, price, lendcount) values (' 深入理解Java虚拟机' , ' 周志明' , ' 机械工业出版社' , 64 .4 , 32 );
22
- insert into TbBook (title, author, publisher, price, lendcount) values (' Effective Java中文版(第2版) ' , ' 埃史尔' , ' 机械工业出版社' , 36 .8 , 200 );
23
- insert into TbBook (title, author, publisher, price, lendcount) values (' 数据结构与算法分析:Java语言描述(原书第3版)' , ' 马克·艾伦·维斯' , ' 机械工业出版社' , 51 .0 , 15 );
24
- insert into TbBook (title, author, publisher, price, lendcount) values (' Java 8实战' , ' 厄马' , ' 人民邮电出版社' , 56 .8 , 25 );
25
- insert into TbBook (title, author, publisher, price, lendcount) values (' 重构:改善既有代码的设计' , ' 马丁·福勒' , ' 人民邮电出版社' , 53 .1 , 99 );
26
- insert into TbBook (title, author, publisher, price, lendcount) values (' 代码大全(第2版)' , ' 史蒂夫•迈克康奈尔' , ' 电子工业出版社' , 53 .1 , 99 );
27
- insert into TbBook (title, author, publisher, price, lendcount) values (' 程序员修炼之道:从小工到专家' , ' 亨特, 托马斯' , ' 电子工业出版社' , 45 .4 , 50 );
28
- insert into TbBook (title, author, publisher, price, lendcount) values (' 代码整洁之道' , ' 马丁' , ' 人民邮电出版社' , 45 .4 , 30 );
29
- insert into TbBook (title, author, publisher, price, lendcount) values (' 设计模式 可复用面向对象软件的基础' , ' Erich Gamma, Richard Helm' , ' 机械工业出版社' , 30 .2 , 77 );
30
- insert into TbBook (title, author, publisher, price, lendcount) values (' 设计模式之禅(第2版)' , ' 秦小波' , ' 机械工业出版社' , 70 .4 , 100 );
19
+ insert into tb_book (title, author, publisher, price, lendcount) values (' Java核心技术(卷1)' , ' 凯 S.霍斯特曼' , ' 机械工业出版社' , 98 .2 , 102 );
20
+ insert into tb_book (title, author, publisher, price, lendcount) values (' Java编程思想' , ' 埃史尔' , ' 机械工业出版社' , 86 .4 , 87 );
21
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 深入理解Java虚拟机' , ' 周志明' , ' 机械工业出版社' , 64 .4 , 32 );
22
+ insert into tb_book (title, author, publisher, price, lendcount) values (' Effective Java中文版(第2版) ' , ' 埃史尔' , ' 机械工业出版社' , 36 .8 , 200 );
23
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 数据结构与算法分析:Java语言描述(原书第3版)' , ' 马克·艾伦·维斯' , ' 机械工业出版社' , 51 .0 , 15 );
24
+ insert into tb_book (title, author, publisher, price, lendcount) values (' Java 8实战' , ' 厄马' , ' 人民邮电出版社' , 56 .8 , 25 );
25
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 重构:改善既有代码的设计' , ' 马丁·福勒' , ' 人民邮电出版社' , 53 .1 , 99 );
26
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 代码大全(第2版)' , ' 史蒂夫•迈克康奈尔' , ' 电子工业出版社' , 53 .1 , 99 );
27
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 程序员修炼之道:从小工到专家' , ' 亨特, 托马斯' , ' 电子工业出版社' , 45 .4 , 50 );
28
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 代码整洁之道' , ' 马丁' , ' 人民邮电出版社' , 45 .4 , 30 );
29
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 设计模式 可复用面向对象软件的基础' , ' Erich Gamma, Richard Helm' , ' 机械工业出版社' , 30 .2 , 77 );
30
+ insert into tb_book (title, author, publisher, price, lendcount) values (' 设计模式之禅(第2版)' , ' 秦小波' , ' 机械工业出版社' , 70 .4 , 100 );
31
31
0 commit comments