设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1863|回复: 8
收起左侧

[题库] Oracle OCP题库解析(8)

[复制链接]
发表于 2012-2-2 17:20:04 | 显示全部楼层 |阅读模式
本帖最后由 ITAA-OCM 于 2012-2-2 17:21 编辑

View the Exhibit.
Which statement regarding the dept and emp tables is true?

                               
登录/注册后可看大图
A) When you delete a row from the emp table, you would receive a constraint violation error.
B) When you delete a row from the dept table, you would receive a constraint violation error.
C) When you delete a row from the emp table, automatically the corresponding rows are deleted from the dept table.
D) When you delete a row from the dept table, automatically the corresponding rows are deleted from the emp table.
E) When you delete a row from the dept table, automatically the corresponding rows are updated with null values in the emp table.
F) When you delete a row from the emp table, automatically the corresponding rows are updated with null values in the dept table.
Answer: D
ON DELETE CASCADE当主键内容被删除,他所对应的外键内容将自动删除。

发表于 2013-1-22 17:44:10 | 显示全部楼层
沙发 2013-1-22 17:44:10 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-10-21 12:48:49 | 显示全部楼层
学学一下,加油
地板 2014-10-21 12:48:49 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-19 05:22 , Processed in 0.058258 second(s), 7 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表