Knowledge of MySQL Learning database

Source: Internet
Author: User

--Database

A database is a warehouse where data is stored.

Databases: Database

Database system DBS: A virtual system that associates a variety of content

DBMS (Database Management System): Specialized database management

Dba:database Administrator: Database administrator

DBS = DBMS + DB

--Classification of databases

Categorized by database based on storage media differences

relational database sql: stored on the hard disk

such as: Oracle, DB2, Sql-server, Mysql, Access .....

Non-relational database nosql: stored in memory

such as: memcached, MongoDB, Redis

--Features of two types of databases:

Relational database:

Secure (stored on disk), easy to understand (built on relational models), no space saving (some word in the data blank still allocates space)

Non-relational database: High efficiency (stored in memory), insecure (loss of data with power outages, but where redis can synchronize data to disk)

--Relational database

Relational databases are built on relational models (mathematical relationships)

Relational model is a model based on relationships (a pair of one or one-to-many, many-to-many)

The relational model includes the data structure (problem of datastore, two-dimensional table),

Operation instruction Collection (SQL statement),

Integrity constraints (data constraints in the table, constraints between tables and tables).

The number field in the table above indicates that this column is the school number (internal constraint); If there is a class in the table, then there is a class table, which is the constraint between the table and the table (through the foreign key).

Knowledge of MySQL Learning database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.