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

來源:互聯網
上載者:User

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: 表或視圖中的最大列數為 1000ORA-06512: 在 line 6

C: 錯誤,default的值可以為NULL
D: 在同一個schema下,表和視圖可以重名,錯誤,表和視圖不可以重名
E: 在同一個schema下,表和同義字可以重名,正確

F:在不同的schema下,表名可以相同。正確


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.