dbms数据库管理系统_DBMS中的数据库语言

dbms数据库管理系统

DBMS数据库语言 (DBMS Database languages )

Database languages are the languages that provide the facility to specify the database schema and to express database queries and updates. They are further divided into four categories but all are purposed to provide the facilities in their specific ways and the most widely used database language is SQL language.

数据库语言是提供用于指定数据库架构以及表达数据库查询和更新的工具的语言。 它们被进一步分为四类,但是所有的目的都是以其特定的方式提供这些功能,并且使用最广泛的数据库语言是SQL语言。

Let us understand the basics of the Database Languages, what's their task are and how they perform it.

让我们了解数据库语言的基础知识,它们的任务是什么以及它们如何执行。

database languages

1)数据定义语言 (1) Data Definition Language)

A Data Definition Language is a special kind of language that used to specify the database schema by the set of definitions. DDL is also purposed to specify the additional properties of the data.

数据定义语言是一种特殊的语言,用于通过定义集指定数据库架构。 DDL还旨在指定数据的其他属性。

There is a special type of DDL named as Data Storage and Definition language that specify the storage structure and access methods used by the database system. The hidden details for the implementation of the database schemas from the users are defined by these statements. Also, the data values that are stored in the database are required to satisfy certain consistency constraints.

有一种特殊的DDL类型,称为数据存储和定义语言 ,用于指定数据库系统使用的存储结构和访问方法。 这些语句定义了用户对数据库模式实施的隐藏详细信息。 而且,需要存储在数据库中的数据值满足某些一致性约束

For e.g. – A university is required to fulfill the criteria of the marks of the students never be negative. DDL provides facilities to specify such type of constraints. Every time the database gets updated, these constraints are being checked by the database system. These constraints can refer to the arbitrary predicate for the database. But these arbitrary predicates are costly for the tests. Therefore, in that case, integrity constraints are implemented by the database systems so that these constraints can be tested with less overhead and more accuracy.

例如 -要求一所大学达到学生分数标准,决不能是负面的。 DDL提供了指定这种约束类型的工具。 每次更新数据库时,数据库系统都会检查这些约束。 这些约束可以引用数据库的任意谓词。 但是这些任意谓词对于测试而言是昂贵的。 因此,在那种情况下,完整性约束由数据库系统实现,以便可以用更少的开销和更高的准确性来测试这些约束。

  • Domain Constraints

    域约束

    These are the most basic form of integrity constraint. In the database, they can be easily tested by the system every time a new data item is entered. Domain needs to be related to every attribute such as integer, character, date/time types. These attributes related to domain further acts as constraints on the values associated with it.

    这些是完整性约束的最基本形式。 在数据库中,每次输入新数据项时,系统都可以轻松测试它们。 域需要与每个属性相关,例如整数,字符,日期/时间类型。 与领域相关的这些属性进一步充当对与其相关联的值的约束。

  • Referential Integrity

    参照完整性

    Referential integrity means the value that is in the one relation must also appear in a certain set of attributes in another relation.

    引用完整性表示一个关系中的值也必须出现在另一个关系中的一组特定属性中。

    Modifications in the database could turn out to violate the referential integrity and such actions are rejected by the normal procedure.

    数据库中的修改可能会违反参照完整性,并且此类操作将被常规过程拒绝。

  • Assertions

    断言

    Assertions are the conditions that are needed to be satisfied by the database. The above two constraints, Domain Constraints and Referential Integrity Constraints are the special forms of assertions.

    断言是数据库需要满足的条件。 以上两个约束(域约束和引用完整性约束)是断言的特殊形式。

    System checks for the validity of the assertion and if it does not fit the validity criteria, no further modifications are done to the database.

    系统检查断言的有效性,如果不符合有效性标准,则不会对数据库做进一步的修改。

  • Authorization simply means to provide access or permission to the differentiated users on various data values in the database.

    授权只是意味着对数据库中的各种数据值向有区别的用户提供访问或许可。

    Most common authorizations are:

    最常见的授权是:

    1. Read Authorization – It only allows the user to read the data.读取授权 –仅允许用户读取数据。
    2. Insert Authorization – It only allows the user to insert the data.插入授权 –仅允许用户插入数据。
    3. Update Authorization – It only allows the user to modify the data.更新授权 –仅允许用户修改数据。
    4. Delete Authorization – It only allows the user to delete the data.删除授权 –仅允许用户删除数据。

    DDL acts like any other programming language, in which an input is taken by the user and the output is generated. These outputs are further stored in the Data Dictionary.

    DDL与任何其他编程语言一样,由用户接受输入并生成输出。 这些输出进一步存储在数据字典中。

2)数据处理语言 (2) Data-Manipulation Language)

Data Manipulation Language (DML) is a language that provides the facility to access or manipulate the data to the user. There is various type of access, such as, retrieval, insertion, modification, and deletion of the information that is stored in the database.

数据操作语言(DML)是一种语言,它提供了访问或操作用户数据的工具。 有各种类型的访问,例如,对数据库中存储的信息的检索,插入,修改和删除

DML are further classified into two types:

DML进一步分为两种类型:

  • Procedural DMLs

    程序DML

    It is required from the user to specify what type of data is needed and how one can reach up to that data.

    用户需要指定所需的数据类型以及如何获取该数据。

  • Declarative DMLs

    声明性DML

    These are also referred to a

    这些也称为

    Non – Procedural DML that requires from the user only to specify what type of data is needed and it doesn't specify how to reach up to that data.

    非–程序DML ,仅要求用户指定所需的数据类型,而未指定如何获取该数据。

    Declarative DMLs are easy to learn and use than Procedural DMLs.

    声明性DML比过程DML更易于学习和使用。

    But in

    但在

    Declarative DMLs when the user doesn’t specify how to reach up to that data, this is the responsibility of the database system to figure out itself how to do so.

    当用户不指定如何到达该数据时,使用声明式DML ,这是数据库系统自行确定如何做到的。

The query is a statement that requests for the retrieval of the information. Query Language is the portion of the DML that involves information retrieval. Therefore, Query Language and Data Manipulation Language, these terms are used synonymously, although they are technically incorrect.

查询是请求检索信息的语句。 查询语言DML中涉及信息检索的部分。 因此,“ 查询语言”和“ 数据操作语言”在技​​术上不正确,但它们是同义词。

3)数据控制语言 (3) Data Control Language)

Data Control Language provides the facility of the authorization in the database. All the commands used in DDL and DML can further be authorized with DCL.

数据控制语言提供了数据库中授权的便利。 DDLDML中使用的所有命令都可以进一步通过DCL授权。

The drawback of DCL is that one cannot rollback the command as DCL allows only implicit commit. This mainly occurs in Oracle Database. Some of the commands of DCL are:

DCL的缺点是无法回滚该命令,因为DCL仅允许隐式提交。 这主要发生在Oracle数据库中。 DCL的一些命令是:

  1. Grant: It allows only specific user to perform specific tasks.

    授予:仅允许特定用户执行特定任务。

  2. Revoke: It allows the cancellation of the previously granted permissions or the denied one.

    吊销:它允许取消先前授予的权限或被拒绝的权限。

4)交易控制语言 (4) Transaction Control Language)

Transaction Control Language is used to manage the transactions in the database. The functions performed by DML are further managed by this language. It allows the statements to be grouped together into logical transactions. TCL performs the following tasks:

事务控制语言用于管理数据库中的事务。 DML执行的功能由该语言进一步管理。 它允许将语句组合在一起成为逻辑事务。 TCL执行以下任务:

  1. Commit: It is used to save the transaction in the database.

    提交:用于将事务保存在数据库中。

  2. Rollback: It is used to restore the database to the last committed state.

    回滚:用于将数据库还原到最后的提交状态。

  3. Savepoint: It is used to store the transaction temporarily such that one can easily rollback to the transaction when needed.

    保存点:用于临时存储事务,以便在需要时可以轻松回滚到该事务。

翻译自: https://www.includehelp.com/dbms/database-languages-in-dbms.aspx

dbms数据库管理系统

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/540782.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

物联网计算机相关专业吗,物联网工程属于计算机专业吗

励志语录(7qianxun.com)不是,物联网工程本身就是一个专业,属于工学范畴。本专业学生要具有较好的数学和物理基础,掌握物联网的相关理论和应用设计方法,具有较强的计算机技术和电子信息技术的能力。物联网工程专业就业前景怎么样教育装备网、物联网是继计…

第一个错误的版本_寻找第一个错误的版本

第一个错误的版本Problem statement: 问题陈述: Suppose that IncludeHelp turns to be a product company & we have a product manager leading a team to develop a new product. Unfortunately, the latest version of our product fails the quality chec…

js的JSON

把任何JavaScript对象变成JSON,就是把这个对象序列化成一个JSON格式的字符串,这样才能够通过网络传递给其他计算机。 如果我们收到一个JSON格式的字符串,只需要把它反序列化成一个JavaScript对象,就可以在JavaScript中直接使用这个…

软件可用性测试mantis,学生选课系统-软件可用性测试实验.doc

学生选课系统-软件可用性测试实验实验报告课程名称:软件测试方法和技术学生姓名:学号:院系:计算机 班级:1202 组别:1任课教师:张建东 指导老师:张建东目录一、实验目的:实…

Web 通信 之 长连接、长轮询(long polling)

基于HTTP的长连接,是一种通过长轮询方式实现"服务器推"的技术,它弥补了HTTP简单的请求应答模式的不足,极大地增强了程序的实时性和交互性。 一、什么是长连接、长轮询? 用通俗易懂的话来说,就是客户端不停的向服务器发送请求以获取最新的数据信…

scala中捕获异常_如何在Scala中引发异常?

scala中捕获异常Scala的例外 (Exceptions in Scala) Exceptions are cases or events that occur in the program at run time and hinder the regular flow of execution of the program. These can be handled in the program itself. 例外是在运行时在程序中发生并阻碍程序…

计算机如何输入ip地址,电脑如何切换ip地址_怎么让电脑切换ip地址-win7之家

在每台电脑中,系统中的ip协议都会有提供一种统一的ip地址,能够为为互联网上的每一个网络和每一台主机分配一个逻辑地址,从而达到屏蔽物理地址的差异,同时我们也可以对ip地址进行切换,那么电脑如何切换ip地址呢&#xf…

java线程和操作系统线程_操作系统中的线程

java线程和操作系统线程线程数 (Threads) A thread is a unit of CPU utilization, which comprises the following parts that are program counter, register set, stack and a thread ID. Generally, it’s well known that the process is heavy weighted which means they…

SQL 强制指定索引加快查询速度

转自:http://blog.csdn.net/qq380107165/article/details/45502641 今天遇到一个查询问题,多加了一个查询参数导致查询超时报黄,经过公司DBA改进,涨姿势了。现在发出来跟大家分享一下!~ 1 SELECT m.* FROM TB_UserSite…

计算机IP地址pin,怎样PIN ip地址

1、用鼠标点击开始——运行(快捷键winR)、弹出【运行】对话框、在窗口中输入cmd,如下图所示。2、单击【确定】按钮、打开命令窗口、如下图所示;3、在命令窗口输入ipconfig/all然后按Enter便可以查看本机IP。如下图所示;4、接下来查看你所需要…

360修复导致服务器,桌面安装360软件修复漏洞补丁导致桌面TC端无法登陆,FC端VNC登陆一键修复显示HDC不可达...

问题描述桌面虚机安装360软件以后打补丁,触发桌面虚机重启以后TC端无法连接到桌面,FC登陆VNC相应的虚拟机通过桌面云修复工具一键修复到33%,提示HDC不可达。告警信息处理过程在360服务器端把华为桌面云的进程加入到360服务器的白名单里面&…

java协变返回类型_Java中的协变返回类型

java协变返回类型协变返回类型 (Covariant return type) The covariant return type is that return type which may vary in parent and child class (or subclass). 协变量返回类型是该返回类型,在父类和子类(或子类)中可能有所不同。 Before JDK5 java does not…

dfs文件服务器访问权限,fastDFS 文件服务器访问

鉴权 token 获取token 由文件服务器管理员分配接口定义上传文件请求 URL:请求方式:GET/POST参数形式:form-data参数:参数名位置类型说明是否必填access_tokenheaderString用户 token是fileurlMultipartFile文件是返回:…

CCFL的完整形式是什么?

CCFL:冷阴极荧光灯 (CCFL: Cold Cathode Fluorescent Lamp) CCFL is an abbreviation of a "Cold Cathode Fluorescent Lamp". CCFL是“冷阴极荧光灯”的缩写。 It is a lighting system lamp that contains cathode that discharges electrons and it …

ffmpeg 纯静态编译,以及添加自定义库流程摘要

需求: 1. 纯静态编译ffmpeg ,即ldd ./ffmpeg 的结果是:not a dynamic executable2. 修改ffmpeg 项目,添加自定义功能库3. 自定义库由c实现,要求能被纯c的ffmpeg项目调用4. 自定义库必须使用g 的一些高级特性编译,要求…

vue ani_ANI的完整形式是什么?

vue aniANI:自动号码识别 (ANI: Automatic Number Identification) ANI is an abbreviation of "Automatic number identification". ANI是“自动号码识别”的缩写 。 It is an attribute of a network of telecommunications for involuntarily finding…

realme系统服务器代码,解锁BL之后,Realme正式开放源代码

集微网8月30日消息(文/数码控),此前Realme已经开放了解锁BootLoader(简称BL),现在官方更进一步,直接将Realme X、Realme X青春版的源代码开放了。可能有的人不知道解锁BL与开放源代码是什么意思,我们在此来说明一下:Bo…

Codeforces 757B - Bash's Big Day(分解因子+hashing)

757B - Bashs Big Day 思路&#xff1a;筛法。将所有因子个数求出&#xff0c;答案就是最大的因子个数&#xff0c;注意全为1的特殊情况。 代码&#xff1a; #include<bits/stdc.h> using namespace std; #define ll long long #define pb push_back const int N1e55; in…

JavaScript中的const

const (const) Like other programming languages, JavaScript also provide the feature to create constants, we can make any identifier as constant by using the "const". 与其他编程语言一样&#xff0c;JavaScript也提供了创建常量的功能&#xff0c;我们可…

无法从ftp服务器上复制文件格式,ftp服务器上复制不了文件格式

ftp服务器上复制不了文件格式 内容精选换一换本版本提供dump_data_conversion.pyc脚本&#xff0c;实现dump数据文件与numpy文件格式互转功能&#xff0c;具体命令行格式如下&#xff1a;-type&#xff1a;数据类型&#xff0c;必选参数 。参数值选项&#xff1a;quant&#xf…