阅 读 文 章

有答案的DB2 700,701题库

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(axjlxy) | 时间:2007-05-27 | 浏览: 人次 ]


700考试真题-1
CE  1.  Which two of the following results from a successful ROLLBACK statement?
(Select 2)
A. The current unit of work is restarted.
B. Existing database connections are released.
C.  Locks held by the current unit of work are released.
D.  Tables in LOAD PENDING for the current unit of work are released.
E.  Changes made by the current unit of work since the last COMMIT points are undone.

?CD  2.  Which two of the following are enforced by the database to restrict specific values from being inserted into a column in a particular table?
A. Index.
B. Stored procedure.
C.  Referential constraint.
 D.  A view with check option.
E.  External scalar function.

C  3.  Given the table T1 created by
  CREATE TABLE t1
    (Id INTEGER NOT NULL GENERATES ALWAYS AS IDENTITY.
C1 CHAR (10) NOT NULL.
C2 CHAR (10)
  Which of the following INSERT statements will succeed?
A. INSERT INTO t1 VALUES(‘abc’, NULL)
B. INSERT INTO t1 VALUES(1, ‘abc’, NULL)
C.  INSERT INTO t1 (c1, c2) VALUES (‘abc’, NULL)
D.  INSERT INTO t1 (c1, c2) VALUES (NULL, ‘def’)

A  4.  Given the following DDL statements,
 CREATE TABLE tab1 (a INT, b INT, c INT)
 CREATE VIEW v1 AS SELECT a, b, c FROM tab1
 WHERE a>;250 WITH CHECK OPTION
Which of the following INSERT statements will fail?
A.  INSERT INTO v1 VALUES (200, 2, 3)
B.  INSERT INTO v1 VALUES (300, 2, 3)
C.  INSERT INTO tab1 VALUES (350, 2, 3)
D.  INSERT INTO tab1 VALUES (250, 2, 3)

C  5.  Given the following column requirement:
 Col1 Numeric Identifier –From 1 to 1000000
 Col2 Job Code-Variable 1 to 2 characters long
 Col3 Job Description –Variable, 1 to 100 characters long
 Col4 Job Length –Length of Job in seconds
Which of the following will minimize the disk space allocated to store the records if Job Description has an average length of 65?
A. CREATE TABLE tab1(col1 INT,col2 CHAR(2),col3 CHAR(100),col4 INT)
B. CREATE TABLE tab1(col1 INT ,col2 VARCHAR(2),col3 CHAR(100),col4 INT)
C.  CREATE TABLE tab1 (col1 INT, col2 CHAR (2), col3 VARCHAR (100), col4 INT)
D.  CREATE TABLE tab1 (col1 INT, col2 VARCHAR (2).col3 VARCHAR (100).col4 INT)

A  6.  Which of the following DB2 data types is used to store 50 MB of binary data as a single value?
A.  BLOB(二进制大对象)
B.  CLOB(字符型大对象)
C.  DBCLOB
D.  GRAPHIC

B  7.  Given the following users and groups with no privileges on table t1:
 
 GroupA             GroupB
 ----------             ---------
  user1               user4
  user2               user5
  user3
Which of the following commands gives all users in the above groups the ability to create a view on table t1?
TAG标签 : 题库 答案 c1 INT selected. SELECT NULL 1record c2

最新评论 共有位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.