1. Study summary 1.1 This week summarize your database-related content in the way you like (mind mapping or other).
- Show all databases: show databases;
Creating a database: Create DB test;
Delete database: Drop DB test;
Connection database: Use test;
Connect to the database before using the database
View the currently connected databases: Select database ();
Tables included in the current database: show tables;
- Add Data:
insert into students(stuno,name,gender,birthdate,major,age) values(‘201010001‘, ‘zhangsan‘, ‘m‘, ‘1992-10-01‘,‘cs‘,25);
- Query the data in the table:
select * from students;
- Delete the data in the table (delete the record numbered 1 in the students table);
delete from students where id = 1;
2. Using database technology your system 2.1 briefly describes how to use the database to transform your system. What table do you want to build? The design of your watch.
- The experiment time is a bit hurried, the library bibliography has established two running script single information table
- The reader only realizes single-borrow single-time storage
What are the key classes used in JDBC in the 2.2 system?
DriverManagerClass: Managing all drivers related to the database
ConnectionInterface: Establishing a connection to the database
StatementInterfaces: Handling SQL statements
ResultSetInterface: Processing a staged result set
2.3 Key code for database related modules. Critical lines need to be annotated.
- Establish a connection to the database
- Students realize borrowing books
- The student realizes the return book
- Student Lending Information Show
3. Code volume Statistics 3.1 Statistics the amount of code completed this week
| Weekly total |
code volume |
|
New Code volume |
|
Total number |
| of new files
|
|
|
| First week |
|
189 |
|
189 |
|
10 |
|
10 |
|
| Second week |
|
304 |
|
304 |
|
9 |
|
9 |
|
| Third week |
|
557 |
|
557 |
|
10 |
|
10 |
|
| Week Four |
|
621 |
|
621 |
|
8 |
|
8 |
|
| Week Five |
|
326 |
|
326 |
|
7 |
|
7 |
|
| Week Six |
|
972 |
|
972 |
|
12 |
|
12 |
|
| Seventh Week |
|
338 |
|
338 |
|
4 |
|
4 |
|
| Eighth Week |
|
379 |
|
379 |
|
6 |
|
6 |
|
| Nineth Week |
|
492 |
|
492 |
|
5 |
|
5 |
|
| Tenth Week |
|
473 |
|
473 |
|
6 |
|
6 |
|
| 11th Week |
|
527 |
|
527 |
|
10 |
|
10 |
|
| 12th Week |
|
661 |
|
661 |
|
7 |
|
7 |
|
| 13th Week |
|
412 |
|
412 |
|
5 |
|
5 |
|
201621123040 Java programming 14th Week of study summary