V2EX  ›  英汉词典

Primary Key

释义 Definition

Primary key主键。在关系型数据库中,用来唯一标识表中每一行记录的字段(或字段组合)。主键通常不允许重复,并且一般不允许为 NULL。也常简称为 PK。(在其他语境中“key”还有“钥匙、关键”等含义。)

发音 Pronunciation (IPA)

/ˈpraɪˌmɛri kiː/

例句 Examples

A primary key uniquely identifies each row in a table.
主键用于唯一标识表中的每一行。

In a well-designed database, the primary key is stable and referenced by foreign keys to maintain relational integrity.
在设计良好的数据库中,主键应当稳定,并由外键引用以维护关系完整性。

词源 Etymology

Primary 来自拉丁语 primarius(“第一的、主要的”),key 在此为引申义(“关键、用于开启/访问的东西”)。合起来的 primary key 属于数据库领域的术语,强调“作为主要标识的关键字段”。

相关词 Related Words

文学与著作 Literary & Works

  • Database System Concepts(Silberschatz, Korth & Sudarshan)
  • Fundamentals of Database Systems(Elmasri & Navathe)
  • SQL and Relational Theory(C. J. Date)
  • The Art of SQL(Stéphane Faroult)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   744 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 21:47 · PVG 05:47 · LAX 13:47 · JFK 16:47
♥ Do have faith in what you're doing.