47.View the Exhibit and examine the structure of ORD and ORD_ITEMS tables.
2016-02-29 11:08
393 查看
47.View the Exhibit and examine the structure of ORD and ORD_ITEMS tables.
The ORD_NO column is PRIMARY KEY in the ORD table and the ORD_NO and ITEM_NO columns are
composite PRIMARY KEY in the ORD_ITEMS table.
Which two CREATE INDEX statements are valid? (Choose two.)
A.CREATE INDEX ord_idx1 ON ord(ord_no);
B.CREATE INDEX ord_idx2 ON ord_items(ord_no);
C.CREATE INDEX ord_idx3 ON ord_items(item_no);
D.CREATE INDEX ord_idx4 ON ord,ord_items(ord_no, ord_date,qty);
答案:BC
解析:主键会自动创建索引
ORD表ord_no为主键,那么ord_no会创建索引
ORD_ITEMS表ORD_NO和ITEM_NO为联合主键,那么ORD_NO和ITEM_NO会创建联合索引
索引不能重复,因此A,错误,D错误
The ORD_NO column is PRIMARY KEY in the ORD table and the ORD_NO and ITEM_NO columns are
composite PRIMARY KEY in the ORD_ITEMS table.
Which two CREATE INDEX statements are valid? (Choose two.)
A.CREATE INDEX ord_idx1 ON ord(ord_no);
B.CREATE INDEX ord_idx2 ON ord_items(ord_no);
C.CREATE INDEX ord_idx3 ON ord_items(item_no);
D.CREATE INDEX ord_idx4 ON ord,ord_items(ord_no, ord_date,qty);
答案:BC
解析:主键会自动创建索引
ORD表ord_no为主键,那么ord_no会创建索引
ORD_ITEMS表ORD_NO和ITEM_NO为联合主键,那么ORD_NO和ITEM_NO会创建联合索引
索引不能重复,因此A,错误,D错误
相关文章推荐
- 用了 CSDN 的 markdown 编辑器吐槽下~~
- 首个threejs项目-前端填坑指南
- bootstrap基础学习十一篇
- Hibernate缓存机制
- ViewSwitcher如何实现一次显示多个View
- Android Surface相关常见问题
- 初学Android,图形图像之使用Bitmap和BitmapFactory(二十四)
- java中栈 堆 寄存器 静态变量 和常量内存解析
- Garbage Collection
- iOS开发new与alloc/init的区别
- redis数据类型 - String
- WebView加载页面
- 学习计划
- iOS之手动内存管理
- 雨中的了悟
- 常用人脸库
- jqGrid在某列中添加input输入框后再操作
- 《Linux Shell 脚本攻略》学习记录之四
- web项目中各种路径的获取
- 玩转游戏搜索