01 Basic Theory of relational database

Source: Internet
Author: User

A method of data processing

File System Management methods:

Data redundancy

Data access difficulties

Data isolation

Consistency, security, integrity not guaranteed

Atomicity issues

Concurrent Access Exceptions

Two documents

Presentation Layer

File

Logical layer

File system: Storage Engine

Physical Layer

Meta data

Data: Data blocks

relational database

Presentation layer: Table

Logical layer: Storage engine

Physical Layer: Data file

Three-relationship model

Relational model

Entity-Relationship Model

Object Relational Model

Semi-structured data model: XML (extended Memento language)

Quad SQL

System R:sql The world's first relational database

Constraint constraint

Domain constraints: Data type constraints

FOREIGN KEY constraints: referential integrity constraints

PRIMARY KEY constraint: A field can uniquely identify the entity to which this field belongs, and cannot be empty, only one primary key in a table

Candidate Key:

Uniqueness constraint: A field in each row is not allowed to have the same value, can be empty, a table can have more than one

Check constraint: Age:int

Five data storage and querying

Storage Manager

Permissions and integrity Manager

Things Manager

File Manager

Buffer Manager

Query Manager

DML Interpreter

DDL interpreter

Query execution engine


Single-process multi-threading, daemon thread, application thread


Relational operations:

Projection: Output only the specified attribute column

Select: Output only the specified record line

Natural joins: Rows with the same value on all property values with the same name

Cartesian product;

and the set operation.

SQL query statement:

Ddl

Dml

DCL


How to interact with RDBMS using the programming language:

Embedded SQL, similar to dynamic SQL, but whose language must be fully determined when compiling in ascending order (0DBC)

Dynamic SQL: The programming language uses the function (mysql_connect ()) method to establish a connection with the RDBMS server and interact with the SQL Server by establishing a connection to send a query statement and save the result to a variable and backward Row processing (JDBC)


MySQL plug-in storage engine

5.5.8 before: Myisam does not support transactions for more than the query, modified less scenes, especially for the application Data Warehouse

After 5.5.8: InnoDB support transaction for online transaction processing



01 Basic Theory of relational 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.