tft每日頭條

 > 科技

 > 數據庫語言

數據庫語言

科技 更新时间:2024-07-18 14:26:42

數據庫語言?Database Management System (DBMS) -- 數據庫管理系統,下面我們就來聊聊關于數據庫語言?接下來我們就一起去了解一下吧!

數據庫語言(數據庫管理系統)1

數據庫語言

Database Management System (DBMS) -- 數據庫管理系統

A database management system (DBMS) is software that controls the storage,organization, and retrieval of data.

Typically, a DBMS has the following elements:"

Kernel codeThis code manages memory and storage for the DBMS."

Repository of metadataThis repository is usually called a data dictionary."

Query languageThis language enables applications to access the data.

A database application is a software program that interacts with a database to access and manipulate data.

數據庫管理系統是一個控制數據存儲、管理和獲取數據的一種軟件。

典型的dbms包括的組件有:

内核代碼。 負責管理dbms的内存和存儲,實現整體框架功能。

元數據集合。這個指的就是數據字典。

例如在Oracle當中,有數以千計的數據字典,來存儲和體現數據庫的各方面信息。

并且有dictionary這個包含所有數據字典信息的字典。

查詢語言。 通過查詢語言使應用程序能夠訪問數據。就是我們所熟知的SQL語言。

SQL語言就是管理數據庫的一個基本語言。

一個數據庫應用就是,對數據庫進行訪問和操縱數據的一個軟件程序。

比如,Oracle中自帶的命令行工具,SQLplus,和開發IDE環境軟件sql developer等等。

Relational Model 關系模型

In his seminal 1970 paper "A Relational Model of Data for Large Shared Data Banks,"

E. F. Codd defined a relational model based on mathematical set theory.

Today, the most widely accepted database model is the relational model.

A relational database is a database that conforms to the relational model.

The relational model has the following major aspects:"

Structures

Well-defined objects store or access the data of a database."

Operations

Clearly defined actions enable applications to manipulate the data and structuresof a database."

Integrity rules

Integrity rules govern operations on the data and structures of a database.

A relational database stores data in a set of simple relations. A relation is a set of tuples. A tuple is an unordered set of attribute values.

1970年的一篇名為“A Relational Model of Data for Large Shared Data Banks”的重要論文,

E. F. Codd 先生定義了基于數據集合理論的關系模型。

也是今天最為廣泛接受的數據庫模型。

所謂的關系型數據庫也就是遵循關系模型的數據庫了。

關系模型有如下重要的組成部分:

結構

定義明确的對象存儲或者數據訪問

也就是說,有明确的數據存儲規則和訪問模式

操作

清晰定義的操作動作,可以操縱數據和數據庫結構

比如我們在SQL中,有明确的語言分類,例如DML語言,DDL語言等等

一緻性規則

一緻性規則管理數據庫的數據和結構上的操作動作。

通過手段保證數據的一緻性讀取。在Oracle中通過undo表空間實現一緻性讀。

一個關系型數據庫将數據存儲在簡單的關系中。關系是元組的集合,元組是無序屬性值的集合。

那麼對應我們現在的數據庫,關系就對應為一張表,元組對用為一條記錄,各個屬性則對應不同的列。

Relational Database Management System (RDBMS) 關系型數據庫管理系統

The relational model is the basis for a relational database management system(RDBMS).

An RDBMS moves data into a database, stores the data, and retrieves it so that applications can manipulate it.

An RDBMS distinguishes between the following types of operations:"

Logical operations

In this case, an application specifies what content is required.

For example, anapplication requests an employee name or adds an employee record to a table

Physical operations

In this case, the RDBMS determines how things should be done and carries out the operation.

For example, after an application queries a table, the database may use an index to find the requested rows,

read the data into memory, and perform many other steps before returning a result to the user.

The RDBMS stores and retrieves data so that physical operations are transparent to database applications.

關系模型是關系型數據庫管理系統的基礎。

一個RDBMS需要裝載數據,存儲數據,并且在需要時獲取數據以便應用程序能夠操縱數據。

一個RDBMS有兩種類型的操作:

邏輯動作:

應用程序指定要獲取什麼數據内容。

例如,一個應用程序獲取一張員工表中的員工姓名,或者增加一個員工記錄。那就是所謂的DML操作。

物理動作:

RDBMS決定如何做事情,以及實現動作。

例如,一個應用查詢了一張表後,數據庫可能使用索引找到查詢行,把數據讀進内存,

把結果返回給用戶前,在執行其他的可能步驟。比如日志記錄等等事情。

RDBMS管理所有存儲和獲取數據的動作,對于應用程序來說,這些操作步驟都是透明的。

也就是說,用戶根本不知道數據是通過何種方式獲取到的。

Oracle Database is an RDBMS.

Oracle Database has extended the relational model to an object-relational model,

making it possible to store complex business models in a relational database.

Oracle就是典型的RDBMS. 也就是說,Oracle是一套軟件,是衆多RDBMS中的一種。.

Oracle 數據庫将關系模型擴展為對象關系模型,

使之可以在一個關系型數據庫中,存儲複雜的商業數據模型。

Oracle也是當前世界上排名第一的數據庫,應用于各種複雜環境。

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关科技资讯推荐

热门科技资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved