计算机与现代化

• 数据库与数据挖掘 • 上一篇    下一篇

空值在多重集合关系中的处理

  

  1. (南京航空航天大学计算机科学与技术学院,江苏南京211106)
  • 收稿日期:2016-07-27 出版日期:2017-03-09 发布日期:2017-03-20
  • 作者简介:郭咏科(1993-),男,安徽合肥人,南京航空航天大学计算机科学与技术学院硕士研究生,研究方向:不完全信息数据库,数据库系统及理论; 毛宇光(1962-),男,江苏南京人,副教授,硕士生导师,研究方向:数据库系统及理论,数据挖掘与数据仓库; 向日锋(1993-),男,江苏南通人,硕士研究生,研究方向:数据库系统及理论。

Processing of Null Value in Multiset Relations

  1. (College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing 211106, China)
  • Received:2016-07-27 Online:2017-03-09 Published:2017-03-20

摘要:

数据库分别采用空值和重复元组模拟现实世界中的不完全信息和重复实体。现有的数据库大多允许返回多重集合作为查询结果,却仍采用传统集合关系基础上拓展的数据模型处理空值,这给数据库带来安全隐患。为了形式化地描述空值在多重集合关系中的行为,基于空值的Unknown解释,本文提出新的逻辑联结词ψ,对Kleene三值逻辑系统进行扩充,在空值环境下重新定义多重集合关系并扩充了标准多重集合关系代数。此外,还证明了代数运算满足的性质,如:结合律、分配律,这对查询优化有着重要意义。扩充后的标准多重集合关系代数可以用来作为处理数据库空值的抽象查询语言。

关键词: 空值, 关系代数, 三值逻辑, 多重集合关系

Abstract:

 Databases use Null value and duplicate tuples to simulate incomplete information and duplicate entities in real world respectively. Multi-set is allowed to be query’s result in most of existing database, however, these databases still use data models based on traditional set relations to handle Null values, and that would bring hidden danger to database security. In order to formally describe Null value’s behavior in multi-set relations, the paper extends Kleene’s three-valued logic system by adding a new logical connective ψ based on Null’s Unknown interpretation, redefines the multi-set relation data model, and extends the standard relational algebra with Null. What’s more, this paper gives the demonstration analysis of the algebra satisfying properties such as associate law and distributive law, and this makes sense to the query optimization. The extended standard multi-set algebra can be used to handle Null value in database as an abstract query language.

Key words: null, relational algebra, three-valued logic, multi-set relation

中图分类号: