由于本人对专业英语不熟,老是译不好,请位高手帮忙?译好马上结贴。(100分)

  • 主题发起人 bluesea07
  • 开始时间
B

bluesea07

Unregistered / Unconfirmed
GUEST, unregistred user!
Primary Keys
Every row in a table should have some column (or set of columns) that uniquely identifies it. A table containing customers might use a customer number column for this purpose, whereas a table containing orders might use the order ID. An employee list table might use an employee ID or the employee social security number column.
Primary Key A column (or set of columns) whose values uniquely identify every row in a table.
This column (or set of columns) that uniquely identifies each row in a table is called a primary key. The primary key is used to refer to a specific row. Without a primary key, updating or deleting specific rows in a table becomes extremely difficult as there is no guaranteed safe way to refer to just the rows to be affected.
Always Define Primary Keys Although primary keys are not actually required, most database designers ensure that every table they create has a primary key so that future data manipulation is possible and manageable.
Any column in a table can be established as the primary key, as long as it meets the following conditions:
_ No two rows can have the same primary key value.
_ Every row must have a primary key value (primary key columns may not allow NULL values).
_ Values in primary key columns can never be modified or updated.
_ Primary key values can never be reused. (If a row is deleted from the table, its primary key may not be assigned to any new rows in the future.)
Primary keys are usually defined on a single column within a table. But this is not required, and multiple columns may be used together as a primary key. When multiple columns are used, the rules listed above must apply to all columns that make up the primary key, and the values of all columns together must be unique (individual columns need not have unique values).
There is another very important type of key called a foreign key, but I'll get to that later on in Lesson 12, "Joining Tables."
 

不能没有你

Unregistered / Unconfirmed
GUEST, unregistred user!
太长了 也太简单了
留给楼下的兄弟立功吧
 
M

_Murray

Unregistered / Unconfirmed
GUEST, unregistred user!
先湊和着看吧,中间有一句我不知道怎么翻译合适,请大家指教.
主键:
在表中的每一行都应该有一些唯一标识它的列(列组).一个包含用户的表可能用一个用户号列来达到这个目的, whereas a table containing orders might use the order ID.一个职工列表可能用一个职工ID列或职工社会保险证号列.
主键A列(列级)唯一标识表中的每一行.这个唯一标识每一行的列就叫主键.主键通常用来指定具体的一行.没有主键,更新或删除某一行将会变的非常困难,因为没有主键就不能保证有一种安全的方法来知道到底有多少指定的行将受到影响.
在表中的任何列都可以被建立成主键,只要他符合以下条件:
- 没有两行有相同的主键值
- 每一行必须有一个主键值(主键值不能允许为空值)
- 在主键列上的值不能被修改或更新
- 主键值不能被重用(如果一个表中的一行被删附后,那个这行的主键值就不能再分配给以后加入行,当做主键值了)
主键在一个表中通常被定义为一个列.但是这不是必须的,主键可以被定义成几列的组合,那么上面所说的那些条件也必须应该到组合列,组合列构成的主键必须是唯一的(组合列中的单独一列不必是唯一的值).
键的另外一种重要的类型叫做外键,但是我将在第12课讲述,题目是"表连结"
 

不能没有你

Unregistered / Unconfirmed
GUEST, unregistred user!
whereas a table containing orders might use the order ID
然而一张表包含着定单信息可能使用订单ID
 
B

bluesea07

Unregistered / Unconfirmed
GUEST, unregistred user!
多谢两位了
 
顶部