MySQL from entry to database deletion (0) What is a database, what is SQL, and what is the relationship between SQL and MySQL

1. What is a database:

1. Database:

The English word DataBase, referred to as DB. A combination of files that store data in a certain format. As the name implies: a warehouse for storing data is actually a bunch of files. These files store data in a specific format.

2. Database management system:

   DataBaseManagement, referred to as DBMS.
    The database management system is specially used to manage the data in the database. The database management system can add, delete, modify and check the data in the database.
    Common database management systems:
        MySQL、Oracle、MS SqlServer、DB2、sybase等....

Second, what is SQL:

1. SQL: Structured Query Language

Programmers need to learn SQL statements, programmers write SQL statements, and then DBMS is responsible for executing SQL statements, and finally completes the addition, deletion, modification, and query operations of data in the database.

Remember: SQL is a set of standards. What programmers mainly learn is SQL statements. This SQL can be used in mysql, in Oracle, and in DB2. (But different database management systems have different strict requirements for SQL syntax)

For example, it is no problem to enter the following SQL in the mysql database, but an error will be reported in the Oracle database, because Oracle's syntax is more rigorous, and msql is relatively loose.

select * from student where name = "Yukino";

Therefore, we try to use the '' symbol to express the content in the database.

2. SQL has the following advantages

1) SQL is not a language specific to a particular database vendor. Almost all major DBMSs support SQL, so learning this language enables you to work with almost any database.

2) SQL is easy to learn. Its sentences are all composed of very descriptive English words, and there are not many of them.

3) SQL, despite its apparent simplicity, is actually a powerful language, and with flexible use of its language elements, very complex and advanced database operations can be performed.

3. What is the relationship between the three?

DBMS--Execute-->SQL--Operation-->DB

First install the database management system MySQL, and then learn how to write SQL statements. After writing the SQL statements, the DBMS executes the SQL statements, and finally completes the data management of the database.

Third, the difference between SQL and MySQL

First of all, SQL is a programming language, in detail: Structured Query Language, SQL is the basic language used for all databases. There are minor syntax changes between different databases, but the basic SQL syntax remains largely the same.

MySQL is a tool, a software, MySQL uses SQL to manage the database, MySQL is a kind of RDBMS that allows to keep the data existing in the database

Conclusion: SQL is a language for manipulating databases and MySQL uses SQL to manage databases.

Guess you like

Origin blog.csdn.net/OMGcome/article/details/123461636