MySQL series one relational database theory

Source: Internet
Author: User

Basic theory of mysql-relational database

Relational model: (Structured data model)

Relational model

Entity-Relationship Model

Object Relational Model: an object-based data model

Semi-structured data model

Relationships: Relational algebra operations

Intersection:

and set:

Subtraction

Complete:

Complement set:

SQL: Structured Query Language


DML: Data Manipulation language

Insert

Delete

Select

Update

DDL: Data Definition language

Create

Drop

Alter


DCL: Data Control Language

Grant

Revoke




relational database

Presentation layer: Table

Logical layer: Storage engine

Physical Layer: Data file



Data storage and querying

Storage Manager

Permissions and Integrity Manager:

Transaction manager:

File Manager:

Buffer Manager:

Query Manager

DML Interpreter

DDL interpreter

Query execution engine


Relational operations:

Projection: outputs only specified properties

Select: Output only rows that match the criteria

Natural joins: All rows of the same name with the same value on the property

Cartesian product:

(A+B) (c+d) =AC+AD+BC+BD

And:


Rdb object:

Library table indexed view user stored procedure Store function trigger Event Scheduler

Constraints:

Domain constraints: Data type constraints

FOREIGN KEY constraints: referential integrity constraints

PRIMARY KEY constraint: A field can uniquely represent the entity to which this field belongs, and is not allowed to be empty

A table can have only one primary key

Unique key constraint: A field in each row is not allowed to have the same value, can be empty

A table can have more than one unique key

Check constraint: Age:int

Constraint


This article from "Operation and maintenance Growth Road" blog, declined reprint!

MySQL series one relational database theory

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.