MySQL Basic notes (i)

Source: Internet
Author: User

Relational database concepts:

1. What is a relational database?

  Relationship Type database: A database built on a relational model (mathematical model)

Relational model: A model that is so-called based on relationships.

The relational model consists of three aspects:

1, data structure: The problem of storage, two-dimensional table (there are rows and columns).

2. Operation instruction set: all SQL statement.

3, integrity constraints: in-Table data constraints (fields and fields), table and table constraints (foreign keys).

2, the design of relational database?

  Relational database: Analyze from the data needs that need to be stored, if it is a class of data (entities) should be designed as a two-bit table

The table is composed of the header (field name: The name used to specify the data) and the data score (the actual stored data unit)

Relational database: Maintains the relationship between entities and entities within the entity.

One of the characteristics of a relational database: if the corresponding field in the table has no value (data), the system still allocates space.

3. Key words

  Databases: Database.

Database system: DBS: is a virtual system, speaking a variety of content associated with the name, dbs= dbms+db

Dbms:datebase Management System, database management systems, dedicated management database

Dba:database Administrator, database administrator

Row/record: Row/record, which refers to a row in a table (a record).

column/field: Column/field,

 

sql:structured query Language, structured querying language

  SQL is divided into three parts:

Ddl:data definition Language, data definition meta, the organization used to maintain stored data (database, table)

Representative instructions such as: Creat,drop,alter, etc.

Dml:data manipulation Language, data manipulation language, used to manipulate data (contents in datasheet)

Representative instructions such as: Insert,delete,update.

Within DML, there is a separate classification dql (data query Language: The language for querying, such as Select).

Dcl:date control Language, data controls language, primarily responsible for Rights management (user)

Representative directive: Grant,revole, etc.

    

MySQL Basic notes (i)

Related Article

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.