Implement a simple DBMS (summary) in Java

 

Time: 2020/1/16

 

Write this DBMS (DBMS say too exaggerated, should be a console program) is a cause of great practical teacher assigned the job database, first labeled GitHub address:  https://github.com/machi12/MyDatabase , if you think if you can, I hope the point of a star.

This blog will mainly talk about some of their problems in the realization of this idea of ​​themselves as well as the DBMS.

 

A. Realize the function

I wrote the DBMS to achieve the following functions (refer to the main instruction format MySQL command-line instructions):

Databases 1.show;  // list all the databases currently exist
 
2.create database database name;  // create a database
 
3.drop database database name;  // delete a database
 
4.use database name;  // use a database
 
5 the tables .Show;  // lists all the tables in the current database exists
 
6.create table (listed types of constraints, .......);  // create a table
 
7.describe table name;  // print a table For more information
 
8.insert into table name (column name, .....) values (values, ......);  // insert data into the table
 
9.select * from table name;  // lookup table All data
 
10.drop table table name;  // a table delete
 
11.help;  // help;
 
12.quit;  // exit

Below is a screenshot of instruction execution:

1.

 

 2.

 

 3.

 

 4.

 

 5.

 

 6.

 

To be continued ~

Guess you like

Origin www.cnblogs.com/machi12/p/12202100.html