Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
BookManager-JavaSwing/db_book.sql at master · deepjava-gm/BookManager-JavaSwing · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
deepjava-gm
BookManager-JavaSwing
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
BookManager-JavaSwing
/
db_book.sql
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
90 lines (61 loc) · 2.98 KB
master
Breadcrumbs
BookManager-JavaSwing
/
db_book.sql
Copy path
Top
File metadata and controls
Code
Blame
90 lines (61 loc) · 2.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
SQLyog Ultimate v11.33 (64 bit)
MySQL - 5.1.49-community : Database - db_book
*********************************************************************
*/
/*
!40101 SET NAMES utf8
*/
;
/*
!40101 SET SQL_MODE=''
*/
;
/*
!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0
*/
;
/*
!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0
*/
;
/*
!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
*/
;
/*
!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0
*/
;
CREATE DATABASE
/*
!32312 IF NOT EXISTS
*/
`
db_book
`
/*
!40100 DEFAULT CHARACTER SET utf8
*/
;
USE
`
db_book
`
;
/*
Table structure for table `t_book`
*/
DROP
TABLE
IF EXISTS
`
t_book
`
;
CREATE
TABLE
`
t_book
` (
`
id
`
int
(
11
)
NOT NULL
AUTO_INCREMENT,
`
bookName
`
varchar
(
20
) DEFAULT
NULL
,
`
author
`
varchar
(
10
) DEFAULT
NULL
,
`
sex
`
varchar
(
10
) DEFAULT
NULL
,
`
price
`
float DEFAULT
NULL
,
`
bookTypeId
`
int
(
11
) DEFAULT
NULL
,
`
bookDesc
`
varchar
(
1000
) DEFAULT
NULL
,
PRIMARY KEY
(
`
id
`
),
KEY
`
bookTypeId
`
(
`
bookTypeId
`
),
CONSTRAINT
`
t_book_ibfk_1
`
FOREIGN KEY
(
`
bookTypeId
`
)
REFERENCES
`
t_booktype
`
(
`
id
`
)
) ENGINE
=
InnoDB AUTO_INCREMENT
=
6
DEFAULT CHARSET
=
utf8;
/*
Data for the table `t_book`
*/
insert into
`
t_book
`
(
`
id
`
,
`
bookName
`
,
`
author
`
,
`
sex
`
,
`
price
`
,
`
bookTypeId
`
,
`
bookDesc
`
)
values
(
1
,
'
java
'
,
'
java1
'
,
'
男
'
,
100
,
1
,
'
这是java书籍
'
),(
2
,
'
三体
'
,
'
刘慈欣
'
,
'
男
'
,
56
,
2
,
'
这是刘慈欣写的科幻小说
'
),(
5
,
'
C语言
'
,
'
我自己
'
,
'
男
'
,
1000
,
9
,
'
哈哈哈哈
'
);
/*
Table structure for table `t_booktype`
*/
DROP
TABLE
IF EXISTS
`
t_booktype
`
;
CREATE
TABLE
`
t_booktype
` (
`
id
`
int
(
11
)
NOT NULL
AUTO_INCREMENT,
`
bookTypeName
`
varchar
(
20
) DEFAULT
NULL
,
`
bookTypeDesc
`
varchar
(
1000
) DEFAULT
NULL
,
PRIMARY KEY
(
`
id
`
)
) ENGINE
=
InnoDB AUTO_INCREMENT
=
10
DEFAULT CHARSET
=
utf8;
/*
Data for the table `t_booktype`
*/
insert into
`
t_booktype
`
(
`
id
`
,
`
bookTypeName
`
,
`
bookTypeDesc
`
)
values
(
1
,
'
计算机类
'
,
'
这是计算机类别图书
'
),(
2
,
'
科幻小说类
'
,
'
科幻类小说
'
),(
9
,
'
C语言类
'
,
'
这是C语言书籍
'
);
/*
Table structure for table `t_user`
*/
DROP
TABLE
IF EXISTS
`
t_user
`
;
CREATE
TABLE
`
t_user
` (
`
id
`
int
(
11
)
NOT NULL
AUTO_INCREMENT,
`
userName
`
varchar
(
20
) DEFAULT
NULL
,
`
password
`
varchar
(
20
) DEFAULT
NULL
,
PRIMARY KEY
(
`
id
`
)
) ENGINE
=
InnoDB AUTO_INCREMENT
=
3
DEFAULT CHARSET
=
utf8;
/*
Data for the table `t_user`
*/
insert into
`
t_user
`
(
`
id
`
,
`
userName
`
,
`
password
`
)
values
(
1
,
'
kinggm
'
,
'
123456
'
),(
2
,
'
1
'
,
'
1
'
);
/*
Procedure structure for procedure `pro_getBookNameById`
*/
/*
!50003 DROP PROCEDURE IF EXISTS `pro_getBookNameById`
*/
;
DELIMITER $$
/*
!50003 CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_getBookNameById`(IN bookId INT,OUT bN VARCHAR(20))
BEGIN
SELECT bookName INTO bN FROM t_book WHERE id=bookId;
END
*/
$$
DELIMITER ;
/*
!40101 SET SQL_MODE=@OLD_SQL_MODE
*/
;
/*
!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS
*/
;
/*
!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS
*/
;
/*
!40111 SET SQL_NOTES=@OLD_SQL_NOTES
*/
;
You can’t perform that action at this time.