27.Which two statements are true regarding tables?
2015-12-17 11:31
519 查看
27.Which two statements are true regarding tables?
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
解析:
A:表名只能30个字符
B:列最大1000个
select count(*) from user_tab_columns where table_name='TEST';
输出:1000
C:列可不可以存储null与默认值没有关系,与not null 约束有关系
D:表和视图不能相同的名字在同一个schema
--那么临时表是否可以与视图同名
E:public 同义词可以和表同名
--创建public 同义词
F:正确
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
解析:
A:表名只能30个字符
B:列最大1000个
drop table test purge; create table test (a0 number); declare v_sql varchar(100); v_col varchar2(5); begin for i in 1 .. 10000 loop v_col := 'a'||to_char(i); v_sql := 'alter table test add( '||v_col||' char(1))'; execute immediate v_sql; end loop; exception when others then dbms_output.put_line(sqlerrm); end;输出:ORA-01792: 表或视图中的最大列数为 1000
select count(*) from user_tab_columns where table_name='TEST';
输出:1000
C:列可不可以存储null与默认值没有关系,与not null 约束有关系
D:表和视图不能相同的名字在同一个schema
create table test (a number); create view test as select * from tab;提示:ORA-00955: 名称已由现有对象使用
--那么临时表是否可以与视图同名
create global temporary table test1(a number) on commit delete rows; create view test1 as select * from tab;提示:ORA-00955: 名称已由现有对象使用
E:public 同义词可以和表同名
create table test (a number); create synonym test for tab;提示:ORA-00955: 名称已由现有对象使用
--创建public 同义词
create public synonym test for tab;--这里成功了,所以如果是同名的话只能是public 同义词
F:正确
相关文章推荐
- java生成16位随机UUID数
- QWebException: 'ascii' codec can't decode byte 0xef in position Exception during JSON request h
- error1062 ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry ’1′ for
- UISlider的使用
- iOS开发笔记之三十二——UITableView的UITableViewStyleGrouped风格顶部空白的设置
- easy ui 学习笔记,不断整理中............
- Android酷炫实用的开源框架(UI框架)
- MVC HtmlHelper guide
- iOS学习之UIScrollView及UIPageControl的使用
- 解决Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 4
- IOS查看UUID
- Mybatis3源码分析(02)-加载Configuration-XMLConfigBuilder
- VirtualBox中出现UUID have already exists 解决方法
- UIImageView动画
- defaultValue与value的区别
- ld: ‘’ does not contain bitcode. You must rebuild it with bitcode enabled ...
- easyui datagrid 计算
- iOS - UI: 动画汇总一(学习日记)
- kafka+fluentd+heka了解资料
- iOS基础-系统自带按钮样式- UIBarButtonSystemItem