OCP-1Z0-051-题目解析-第27题

27. Which two statements are true regarding tables? (Choose two.) 
A. A table name can be of any length. 
B. A table can have any number of columns. 
C. A column that has a DEFAULT value cannot store null values. 
D. A table and a view can have the same name in the same schema. 
E. A table and a synonym can have the same name in the same schema. 

F. The same table name can be used in different schemas in the same database. 


Answer: EF

A:错误,表名的最大长度为30

B:错误。字段最多为1000个

能够測试下

SQL> create table tt(id int);

表已创建。

SQL> edit
已写入 file afiedt.buf

  1  declare
  2  v_string varchar2(100);
  3  begin
  4  for i in 1..1000 loop
  5  v_string := 'alter table tt add col'||i||' int' ;
  6  execute immediate v_string;
  7  end loop ;
  8* end;
SQL> /
declare
*
第 1 行出现错误:
ORA-01792: 表或视图中的最大列数为 1000
ORA-06512: 在 line 6

C: 错误。default的值能够为NULL
D: 在同一个schema下,表和视图能够重名。错误。表和视图不能够重名
E: 在同一个schema下,表和同义词能够重名,正确

F:在不同的schema下。表名能够同样。

正确


转载于:https://www.cnblogs.com/mfmdaoyou/p/7040156.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值