帮忙翻译如下计算机专业英语?谢谢(10分)

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

bluesea07

Unregistered / Unconfirmed
GUEST, unregistred user!
不好意思有最后10分了,请多帮忙
Analysis
This statement adds a column named vend_phone to the Vendors table. The datatype must be specified.
Other alter operations, for example, changing or dropping columns, or adding constraints or keys, use a similar syntax. (Note that the following example will not work with all DBMSs):
Input
ALTER TABLE Vendors
DROP COLUMN vend_phone;
Complex table structure changes usually require a manual move process involving these steps:
_Create a new table with the new column layout.
_Use the INSERT SELECT statement (see Lesson 15, "Inserting Data," for details of this statement) to copy the data from the old table to the new table. Use conversion functions and calculated fields, if needed.
_Verify that the new table contains the desired data.
_Rename the old table (or delete it, if you are really brave).
_Rename the new table with the name previously used by the old table.
Recreate any triggers, stored procedures, indexes, and foreign keys as needed.
Use ALTER TABLE Carefully Use ALTER TABLE with extreme caution, and be sure you have a complete set of backups (both schema and data) before proceeding. Database table changes cannot be undone—and if you add columns you don't need, you might not be able to remove them. Similarly, if you drop a column that you do need, you might lose all the data in that column.
 
分析
这个语句添加列被命名vend_phone。 datatype 必须被指定。
其他修改运算, 例如, 更改的或删除的列, 或添加约束或关键字, 使用一个相似的语法。 (以下实例不会运作与所有DBMSs)
输入
ALTER TABLE Vendors
DROP COLUMN vend_phone;
复杂表结构更改通常要求一个手工移动进程介入这些步骤:
_ 创建一张新建表以新建列格式。
_ 使用 INSERT SELECT statement (see Lesson 15, "Inserting Data," for details of this statement) 复制数据从旧表对新建表。如果需要,使用转换功能和计算字段,
_ 验证, 新建表包含渴望的数据。
_ 给旧表改名(或删除它, 如果您是真正地勇敢的) 。
_ 给新建表改名以名字由旧表早先使用。
再创造所有触发器, 被存储的规程, 索引, 并且外部关键字依照必要。
ALTER TABLE 表要非常小心, 在进行之前并且是肯定的您有完全备份数据。 数据库表更改无法是解开和如果您添加您不需要的列, 你也许不能删除他们。 同样, 如果你删除你需要的列, 你也许丢失所有数据在那列。
 
接受答案了.
 

Similar threads

A
回复
0
查看
943
Andreas Hausladen
A
A
回复
0
查看
819
Andreas Hausladen
A
A
回复
0
查看
623
Andreas Hausladen
A
A
回复
0
查看
848
Andreas Hausladen
A
后退
顶部