dbms数据库管理系统

DBMS College professor once realized that students feel sad when they see their friend's marks higher than them and it creates a negative impact on them. It gave the Professor an idea to create a view table in his student academic result database.

DBMS学院的教授曾经意识到,当学生看到朋友的标记比他们高时会感到难过,这会对他们产生负面影响。 这给了教授一个想法, 可以在他的学生学术成绩数据库中创建视图表

In the database, View is a virtual table that combines the result set of a stored query. It is very important when we want to restrict a certain user from accessing the entire database. View is dynamic and can be computed from the data in the database. Changing the data in a table alters the data shown in the view as well.

在数据库中, View是一个虚拟表,它结合了存储查询的结果集 。 当我们想限制某个用户访问整个数据库时,这一点非常重要。 视图是动态的,可以根据数据库中的数据进行计算。 更改表中的数据也会更改视图中显示的数据。

When the Professor applies this technique, the student got to see their marks only and thus create a positive impact on the students as they are now competing with the one person only, themselves.

当教授应用此技术时,学生只能看到自己的标记,从而对学生产生积极的影响,因为他们现在仅与一个人自己竞争。

In a relational database, a view is not the part of a relational schema.

在关系数据库中, 视图不是关系模式的一部分。

1.创建视图 (1. Create view)

Syntax to create a view:

创建视图的语法:

    create or replace
view view_name
as
select column_name1, column_name2,...
from table_name
where condition;

Example:

例:

Suppose, we have to create a student view table of view10.

假设我们必须创建一个view10的学生视图表。

create
view view10
select marks from student
where rollno = 10;

2.放下视图 (2. Drop View)

Syntax to drop a view:

删除视图的语法:

    drop view viewname;

Example:

例:

If view10 table has to be dropped, the command looks like:

如果必须删除view10表,则命令如下所示:

drop view view10;

DBMS中视图的优点 (Advantages of a view in DBMS)

  1. Views can subset the data in a table.

    视图可以将表中的数据子集化。

  2. Views can join and simplify the tables in a virtual table.

    视图可以联接并简化虚拟表中的表。

  3. Views do not require additional storage.

    视图不需要额外的存储。

  4. Views can hide the complexity of the database and the data the user must hide that.

    视图可以隐藏数据库的复杂性以及用户必须隐藏的数据。

  5. Views can act as aggregated tables where aggregated data (sum, average, etc.) are calculated and presented as part of data.

    视图可以用作汇总表,在汇总表中计算汇总数据(总和,平均值等)并将其显示为数据的一部分。

  6. Views can provide additional security from unauthorized users and unauthorized access.

    视图可以为未经授权的用户和未经授权的访问提供额外的安全性。

DBMS中视图的缺点 (Disadvantages of a view in DBMS)

Database view may be slow if it is approved from a view table that is generated from another view.

如果从另一个视图生成的视图表中批准了数据库视图,则数据库视图可能会变慢。

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

dbms数据库管理系统

dbms数据库管理系统_数据库管理系统(DBMS)中的视图相关推荐

  1. mysql dbms是什么_数据库管理系统(DBMS)是用来做什么的?

    展开全部 数据库管理系统(database management system)是一种操纵和32313133353236313431303231363533e58685e5aeb93133326235 ...

  2. dbms数据库管理系统_数据库管理系统dbms

    dbms数据库管理系统 A database is an organized collection of data, generally stored and accessed electronica ...

  3. java代码餐馆管理系统_餐饮管理系统(包括数据库,源代码)

    韩顺平满汉楼管理系统(包括数据库,源代码)\.metadata\.lock, 0 , 2013-05-17 韩顺平满汉楼管理系统(包括数据库,源代码)\.metadata\.log, 456360 , ...

  4. java mysql数据库回退_数据库事务及Java中的处理

    事 务是指一组相互依赖的操作行为,举一个举得不能再被举的例子就是银行交易,当然还有其他像网上购物,电子货币交易等等,事务的成功取决于这些相互依赖的操 作行为是否都能执行成功,只要有一个操作行为失败,就 ...

  5. sql 数据库检查_数据库检查点– SQL Server 2016中的增强功能

    sql 数据库检查 When a new row is inserted or an existing one is updated in your database, the SQL Server ...

  6. 元组可以直接添加进数据库吗_数据库篇-第一章:数据库基本概念

    面试必备基础数据库知识,扫码关注公众号提升 01 第一,什么是数据库? 维基百科上是这样定义的: 所谓"数据库"是以一定方式储存在一起.能予多个用户共享.具有尽可能小的冗余度.与应 ...

  7. mysql dbms是什么_什么是DBMS

    一.什么是DBMS? 数据库管理系统(也称为DBMS)是一种用于通过考虑适当的安全措施来存储和检索用户数据的软件,允许用户根据他们的要求创建自己的数据库.DBMS由一组程序组成,并且程序操纵数据库,提 ...

  8. 网络资产管理系统_固定资产管理系统的三种网络架构方式

    随着互联网技术的发展和信息技术的广泛使用,固定资产管理系统在各行业的应用越来越普及,固定资产管理系统作为当今主流的企业固定资产信息化管理模式,能够对企业固定资产进行有效管理并提升企业的管理水平.对于固 ...

  9. java 设备管理系统_设备管理系统

    压缩包 : b679ef31dc714eb51f600211e9.rar 列表 设备管理系统/EquipmentManage/.classpath 设备管理系统/EquipmentManage/.pr ...

最新文章

  1. 常见存储过程分页PK赛——简单测试分析常见存储过程分页速度
  2. vi php,linux编辑文件命令vi有什么作用
  3. Spring 4.2中由注释驱动的事件侦听器
  4. win下python2,3和pip2,3双版本共存
  5. 超前促销创意PSD分层电商海报,紧抓住消费冲突视觉力!
  6. int输出%f浮点值是0,double/float 浮点数%d输出0的原因
  7. 使用Opencv获取每个像素点的RGB颜色分量/HSV颜色分量
  8. SCADA数采HAAS数控系统现场实操步骤
  9. STM32学习记录0005——JLINK下载与调试
  10. 看英语书记录的单词-5
  11. python计算1的平方减2的平方加3的平方减4的平方怎么算_墙体的面积怎么算的快?墙的平方快速计算方法...
  12. apache端口转发 端口映射
  13. CreateProcess函数详解(转)
  14. Linux禁止普通用户使用某些命令
  15. 永恒之蓝漏洞获取桌面截图
  16. 生活中正确购买物品你可能真的不会!
  17. 论技术、业务和商业的关系
  18. 前端面试题--水平垂直居中的方法
  19. 什么是你的高光时刻?
  20. p66 内网安全-域横向批量atschtasksimpacket

热门文章

  1. arthas 排查内存溢出_Java 应用线上问题排查思路、常用工具小结
  2. ad电阻原理图_【雕爷学编程】Arduino动手做(2)---光敏电阻模块
  3. CentOS7下Spark集群的安装
  4. 你真的了解iOS怎么取属性的吗?
  5. ffmpeg 纯静态编译,以及添加自定义库流程摘要
  6. 机器视觉支架制作(带效果测试)
  7. swift 3.0 中使用 xib
  8. [转载]使用awk进行数字计算,保留指定位小数
  9. Visio显示不完整
  10. 求首位相连一维数组最大子数组的和