Elective in the eighth week

Screenshot of the result (code inspection)

code analysis

Example11_1:
This code is used to query all records of the message table in the student database.
Example11_2:
Separate the database into a GetDatabaseConnection class. Randomly query two records of the message table in the student database.
Example11_3:
This code is to query the students whose surname is Zhang in the message table, whose height is greater than 16.5, whose birth year is 2000 or before 2000, and whose month is after July, and sorts by birth date.
Example11_4:
This code inserts two records into the mess table.
Example11_5:
This code uses a prepared statement to add and query the record with the surname Zhang to the message table.
Example11_6:
The function of this code is to pass the database name and SQL statement to an object of the Query class.
Example11_7:
The function of this code is to reduce the height value of the number field R1001 in the message table by n, and add the reduced n to the height of the field R1002.
Example11_8:
The function of this code is to use the Derby database system to create a database named student, and create a chengji table in the database

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652244&siteId=291194637