阅 读 文 章

有答案的DB2 700,701题库

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


  empid   name            empid  weeknumber  paycheck 
  1       USER1           1      1           1000.00 
  2       USER2           1      2           1000.00 
                          2      1           2000.00
  TABLEB was defined as follows: 
    CREATE TABLE tableb (empid CHAR (3), 
                        weeknumber CHAR (3), 
                        paycheck DECIMAL (6, 2), 
      CONSTRAINT const1 FOREIGN KEY (empid) 
      REFERENCES tablea (empid) ON DELETE RESTRICT)
How many rows would be deleted from tableb if the following command was issued?
    DELETE FROM tablea WHERE empid = '2'
A. 0    
B. 1    
C. 2    
D. 3  

C    11.  Given the SQL statement: 
ALTER TABLE table1 ADD col2 INT WITH DEFAULT 
Which of the following is the result of the statement?
 A. The statement fails because no default value is specified.  
   B. A new column called COL2 is added to TABLE1 which would have a null value if selected.  
  C. A new column called COL2 is added to TABLE1 which would have a value of zero if selected.  
  D. A new column called COL2 is added to TABLE1 which would require the default value to be set before working with the table.  
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):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.