首页 | 本学科首页   官方微博 | 高级检索  
     检索      

关系数据库设计中主键的定义分析
引用本文:刘奕.关系数据库设计中主键的定义分析[J].辽宁高职学报,2014(6):92-93.
作者姓名:刘奕
作者单位:抚顺职业技术学院,辽宁抚顺113122
摘    要:在关系数据库中,主关键字定义起着重要作用。为避免数据库设计中出现错误,主键定义必须遵守相关守则,即主键必须唯一识别每一记录,且主键的值不能为空。因此,在实际工作中,代理键比自然键更适合定义主键。这一简单的方法为程序开发提供了坚固的、稳定的、灵活的基础。

关 键 词:关系数据库  主键  自然键  代理键

The Definition Analysis of the Primary Key in Relational Database Design
LIU Yi.The Definition Analysis of the Primary Key in Relational Database Design[J].Liaoning Higher Vocational Technical Institute Journal,2014(6):92-93.
Authors:LIU Yi
Institution:LIU Yi (Fushun Vocational Technology Institute, Fushun 113122, China)
Abstract:In relational database, the primary key definition plays an important role. To avoid errors in the design of database, the primary key definition must abide by the related rules, namely the primary key must be unique to identify each record, and the primary key value can not be empty. Therefore, in practice, a surrogate key is more suitable to define the primary key than a natural key. The simple method provides a solid, stable, and flexible foundation for program development.
Keywords:relational database  prim ary key  natural key  surrogate key
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号