1Z0-051 QUESTION 27 table的命名规则
来源:互联网 发布:mac r语言安装 编辑:程序博客网 时间:2024/05/01 03:31
QUESTION 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.
D选项错,一个schema里面不能有相同的table name。
F选项对,不同的schema在一个数据库里面可以有相同的表名
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.
答案:EF
解析:
命名规则参看官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/sql_elements008.htm#SQLRF51129
A选项错,表名只能是1-30个字符:
Names must be from 1 to 30 bytes long with these exceptions:
Names of databases are limited to 8 bytes.
Names of database links can be as long as 128 bytes.
C选项错,DEFAULT可以指定null为默认值。
SQL> create table test1 ( 2 t1 varchar2(10) default null);
D选项错,一个schema里面不能有相同的table name。
E选项部分对,synonym 可以相同,但仅仅是public synonym。
SQL> create synonym test1 for test1;create synonym test1 for test1*ERROR at line 1:ORA-01471: cannot create a synonym with same name as objectSQL> create public synonym test1 for test1;Synonym created.
F选项对,不同的schema在一个数据库里面可以有相同的表名
0 0
- 1Z0-051 QUESTION 27 table的命名规则
- 1Z0-051 QUESTION 26 table的命名规则
- 1Z0-051 QUESTION 37 关于drop table
- 1Z0-051 QUESTION 36 create table中约束应注意的地方
- OCP 1Z0 051 QUESTION NO: 27
- 1Z0-51 QUESTION 33 CREATE TABLE中约束的语法
- 1Z0-051 QUESTION 1 利用CREATE TABLE AS创建表
- 1Z0-051 QUESTION 34 通过alter table修改primary key
- 1Z0-051 QUESTION 5 TO_CHAR的应用
- 1Z0-051 QUESTION 7 ON和USING的用法
- 1Z0-051 QUESTION 9 关于INTERSECT的用法
- 1Z0-051 QUESTION 12 别名和INITCAP的运用
- 1Z0-051 QUESTION 13 Q字符的特殊使用
- 1Z0-051 QUESTION 14 DISTINCT的用法
- 1Z0-051 QUESTION 16 Q操作符的使用
- 1Z0-051 QUESTION 17 NULL的运算
- 1Z0-051 QUESTION 23 数据类型应该注意的地方
- 1Z0-051 QUESTION 24 数据类型应该注意的地方
- 初学菜鸟的学习日记——栈结构(JAVA)
- 归并排序
- 韓国フェリー事故について
- ubuntu14.04 64位安装WPS(成功解决没有ia32-libs的问题)
- 马云谈保险 ,字字珠玑!
- 1Z0-051 QUESTION 27 table的命名规则
- 解决linux下cocos2dx不能播放声音
- 一个整数数组,长度为n,将其分为m份,使各份的和相等,求m的最大值
- HttpModule
- 关于【非阻塞型同步 (Non-blocking Synchronization)】
- 表单校验
- skia编译与简单例子
- C++Primer 第五版 1.C++基础
- DP-循环数组最大子段和