Given the following statements:CREATE TABLE tab1 (col1 INT); CREATE TABLE tab2 (col1 INT); CREATE TRIGGER trig1 AFTER UPDATE ON tab1 REFERENCING NEW AS new1 FOR EACH ROW MODE DB2SQL INSERT INTO tab2 VALUES(new1.col1); INSERT INTO tab1 VALUES(2),(3);What is the result of the following query? SELECT count(*) FROM tab2;()
A.3
B.2
C.1
D.0
第1题:
下列哪组SQL命令全部属于数据定义语句的命令?()
A.CREATE,DROP,ALTER
B.CREATE,DROP,SELECT
C.CREATE,DROP,GRANT
D.CREATE,DROP,UPDATE
第2题:
对于表A(col1 int,col2 char(1))更新col1=1的数据col2值为N,下面语句正确的是()
A.update table A set col2=’N’ where col1=1
B.modify table A set col2=N where col1=1
C.update A set col2=’N’ where col1=1
D.modify A set col2=N where col1=1
第3题:
在C++语言中,在某些应用时,经常会碰到需要用到二维数组的情况。现在有如下应用要求,要求分别创建一个int类型二维数组的构造函数,以及一个int类型二维数组的释放函数,其函数的定义如下,请你实现他们。 int ** create2DArray(int d1, int d2); void destory2DArray(int ** array);
第4题:
对于表A(col1 int,col2 char(1))使用聚合函数sum,下面语句正确的是()
A.select sum(col2) as col2 from A group by col1
B.select sum(col1) as col1 from A group by col2
C.select sum(col1) as col1,col2 from A group by col1
D.select sum(col2) as col1 from A group by col2
第5题:
【单选题】对于建立在数据库上的DDL触发器,常用的激活DDL触发器的事件不包括()
A.Create_Table,Alter_Table,Drop_Table
B.Create_View,Alter_View,Drop_View
C.Create_Procedure,Alter_Procedure,Drop_Procedure
D.Rollback
第6题:
如果要让某个用户能够在所有模式下建表应该授予此用户哪个权限?
A.create table
B.create any table
C.create all table
D.create * table