阅 读 文 章

有答案的DB2 700,701题库

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


123    345
1 record (s) selected
 C.   C1   C2
-----   -------
123    0
1 record (s) selected
D.    C1   C2
-----   -------
null    0
1 record (s) selected

B   42.   Given the following SQL Statements:’
Create table tab1 (col1 int )
Insert into tab1 values (null)
Insert into tab1 values (1)
Create table tab2 (col1 int)
Insert into tab2 values (null)
Insert into tab2 values (1)
Select count (*) from tab1
Where col1 in 
Which of the following is the result of the SELECT COUNT (*)(select col1 from tab2)
Statement?
A.   0  
B.   1  
C.   2   
D.   null

C   43.  A user defined function named F.FOO has an input parameter of an integer. USER4 executes the following SQL statement:
SELECT col1.col2from t.tab1 where f.foo (col1) <6;
Which of the following statements grants USER4 the privilege needed to be able to execute the user defined function?
A.  GRANT USE ON FUNCTION F.FOO (INT) TO USER4
B.  GRANT SELECT ON FUNCTION F.FOO (INT) TO USER4
C.  GRANT EXECUTE ON FUNCTION F.FOO (INT) TO USER4
D.  GRANT REFERENCES ON FUNCTION F.FOO (INT) TO USER4

D   44.  Given the following:
create table tab1 (c1 char (3) with default null, c2 integer);
insert into tab1(c2) values (345)
 What will be the result of the following statement if issued from the command line processor?
Select* from tab1;
A.   C1   C2
     -----   -------
0 record (s) selected 

B.   C1   C2
     -----   -------
     123      345
1 record (s) selected 
C.    C1      C2
-----   -------
TAG标签 : 题库 答案 c1 INT selected. SELECT NULL 1record c2

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

发表评论

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