...几列的组合的值在表中惟一地指定一行 记录,这样的一列或多列称为表的主键( 记录,这样的一列或多列称为表的主键(Primary Key,PK),通过它可强制表的实体完整性。 ),通过它可强制表的实体完整性 , ),通过它可强制表的实体完整性。
基于4个网页-相关网页
还将ID列标识为表的主键。
You've also identified the id column as the table's primary key.
数据库为一个表格的主键生成值(通过扩展,为相关表生成外主键),从而将程序从这项任务的重担中解放出来。
Having the database generate values for the primary key for a table (and by extension, any foreign key values for related tables) eliminates the burden from the application from having to do so.
Find方法会查询你的Employee表中的记录,看谁的主键值为18。
The find method will query your Employees table for the record whose primary key is 18.
应用推荐