单选题The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 IN

题目
单选题
The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 INTO :studnum, :firstname, :lastname, :class Which of the following DELETE statements will cause this row to be deleted?()
A

DELETE ALL FROM tab01 FOR CURRENT OF csr01

B

DELETE FROM tab01 FOR CURRENT csr01 WITH RS

C

DELETE * FROM tab01 WHERE CURRENT csr01 WITH CS

D

DELETE FROM tab01 WHERE CURRENT OF csr01 WITH RR


相似考题
参考答案和解析
正确答案: C
解析: 暂无解析
更多“单选题The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 IN”相关问题
  • 第1题:

    123,132,213,231,312,()
    A.213
    B.321
    C.123
    D.231


    答案:B
    解析:
    此数列是由1、2、3三个数字组成的三位数从小到大的排列,312后面应是321。
    小结:题干数字和选项数字都是由1、2、3组成的三位数,是对此题规律的最大提示。

  • 第2题:

    设有Teachers表,该表的定义如下:  CREATE TABLE Teachers(  Tno  CHAR(8)  PRIMARY  KEY,  Tname  VARCHAR(10)  NOT NULL,  Age  TINYINT  CHECK(Age BETWEEN 25 AND 65)  )  下列插入语句中,不能正确执行的是()。

    AINSERT INTO Teachers VALUES(’T100’,’张宏’,NULL)

    BINSERT INTO Teachers(Tno,Tname,Age) VALUES(’T100’,’张宏’,30)

    CINSERT INTO Teachers(Tno,Tname) VALUES(’T100’,’张宏’)

    DINSERT INTO Teachers VALUES(’T100’,’张宏’)


    D

  • 第3题:

    取得查询语句的结果集中的记录函数有()

    • A、mysql_fetch_row
    • B、mysql_fetch_assoc
    • C、mysql_num_rows
    • D、mysql_fetch_array
    • E、mysql_fetch_object

    正确答案:A,B,D,E

  • 第4题:

    Which of the following will begin a new unit of work?()

    • A、The CONNECT statement
    • B、The first FETCH of a cursor
    • C、The BEGIN TRANSACTION statement
    • D、The first executable SQL statement

    正确答案:D

  • 第5题:

    You created the ORDERS table in your database by using the following code:   SQL> CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL> INSERT INTO ORDERS VALUES(’18-AUG-00 10:26:44 PM America/New_York’);   SQL> INSERT INTO ORDERS VALUES(’23-AUG-02 12:46:34 PM America/New_York’);   SQL> COMMIT;   Next, you issued the following statement to change the time zone for the database:   SQL> ALTER DATABASE SET TIME_ZONE=’Europe/London’;   What will be the result of executing the above statement?()  

    • A、 The statement will fail.
    • B、 The statement will be executed successfully, and the new time zone will be set for the database.
    • C、 The statement will be executed successfully, but the new time zone will be set for the current session.
    • D、The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.

    正确答案:A

  • 第6题:

    简述mysql_fetch_row()和mysql_fetch_array之间有什么区别?


    正确答案: M.ysql_fetch_row是从结果集取出1行数组,作为枚举
    M.ysql_fetch_array是从结果集取出一行数组作为关联数组,或数字数组,两者兼得

  • 第7题:

    单选题
    Your Oracle10g database contains a table with a TIMESTAMP TO LOCAL TIME ZONE column. There are about two hundred column values for the column. You issued the following statement:   SQL> ALTER DATABASE SET TIME_ZONE =’Europe/London’;   What will be the result of issuing the above statement?()
    A

     The statement will be executed successfully, and a new time zone will be set for the database.

    B

     The statement will be executed successfully, but a new time zone will not be set for the database.

    C

     The statement will not be executed successfully because the SET TIME_ZONE clause can be used only with the ALTER SESSION statement.

    D

     The statement will not be executed successfully because the ALTER DATABASE SET TIME_ZONE statement is used only when the database contains no table with the TIMESTAMP TO LOCAL TIME ZONE column.


    正确答案: C
    解析: 暂无解析

  • 第8题:

    单选题
    设有Teachers表,该表的定义如下:  CREATE TABLE Teachers(  Tno  CHAR(8)  PRIMARY  KEY,  Tname  VARCHAR(10)  NOT NULL,  Age  TINYINT  CHECK(Age BETWEEN 25 AND 65)  )  下列插入语句中,不能正确执行的是()。
    A

    INSERT INTO Teachers VALUES(’T100’,’张宏’,NULL)

    B

    INSERT INTO Teachers(Tno,Tname,Age) VALUES(’T100’,’张宏’,30)

    C

    INSERT INTO Teachers(Tno,Tname) VALUES(’T100’,’张宏’)

    D

    INSERT INTO Teachers VALUES(’T100’,’张宏’)


    正确答案: D
    解析: 暂无解析

  • 第9题:

    单选题
    取得搜索语句的结果集中的记录总数的函数是:()
    A

    mysql_fetch_row

    B

    mysql_rowid

    C

    mysql_num_rows

    D

    mysql_fetch_array


    正确答案: B
    解析: 暂无解析

  • 第10题:

    问答题
    简述mysql_fetch_row()和mysql_fetch_array之间有什么区别?

    正确答案: M.ysql_fetch_row是从结果集取出1行数组,作为枚举
    M.ysql_fetch_array是从结果集取出一行数组作为关联数组,或数字数组,两者兼得
    解析: 暂无解析

  • 第11题:

    单选题
    关于mysql_fetch_object说法中,正确的是:()。
    A

    mysql_fetch_object和mysql_fetch_array一样,没什么区别

    B

    mysql_fetch_object返回值是个对象,所以在速度上比mysql_fetch_array要慢

    C

    mysql_fetch_object返回值是个数组,所以在速度上和mysql_fetch_array及mysql_fetch_row差不多

    D

    mysql_fetch_object返回值是个对象,在速度上和mysql_fetch_array及mysql_fetch_row差不多


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    To make audit information more productive, the DBA executes the following command before starting an auditoperation: SQL> ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE; Which statement is true regarding the audit record generated when auditing starts after restarting Thedatabase()
    A

    It contains only the plan for the SQL statement executed by the user.

    B

    It contains the SQL text executed by the user and the bind variables used with it.

    C

    It contains the plan and statistics associated with the SQL statement executed by the user.

    D

    It contains the plan for the SQL statement executed by the user and the bind variables used with it


    正确答案: C
    解析: 暂无解析

  • 第13题:

    123,132,213,231,312,( )

    A. 213
    B. 321
    C. 123
    D. 231

    答案:B
    解析:
    解题指导: 1,2,3三个数分别在百位,十位,个位各自都出现2次.故答案为B。

  • 第14题:

    关于HQL的连接查询,说法错误的是()。

    • A、inner join 或 join用于内连接
    • B、inner join fetch或 join fetch用于迫切内连接
    • C、left outer join fetch 或 left join fetch用于迫切左外连接
    • D、right outer join fetch 或 right join fetch用于迫切右外连接

    正确答案:D

  • 第15题:

    The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 INTO :studnum, :firstname, :lastname, :class Which of the following DELETE statements will cause this row to be deleted?()

    • A、DELETE ALL FROM tab01 FOR CURRENT OF csr01
    • B、DELETE FROM tab01 FOR CURRENT csr01 WITH RS
    • C、DELETE * FROM tab01 WHERE CURRENT csr01 WITH CS
    • D、DELETE FROM tab01 WHERE CURRENT OF csr01 WITH RR

    正确答案:D

  • 第16题:

    Your Oracle10g database contains a table with a TIMESTAMP TO LOCAL TIME ZONE column. There are about two hundred column values for the column. You issued the following statement:   SQL> ALTER DATABASE SET TIME_ZONE =’Europe/London’;   What will be the result of issuing the above statement?()

    • A、 The statement will be executed successfully, and a new time zone will be set for the database.
    • B、 The statement will be executed successfully, but a new time zone will not be set for the database.
    • C、 The statement will not be executed successfully because the SET TIME_ZONE clause can be used only with the ALTER SESSION statement.
    • D、 The statement will not be executed successfully because the ALTER DATABASE SET TIME_ZONE statement is used only when the database contains no table with the TIMESTAMP TO LOCAL TIME ZONE column.

    正确答案:D

  • 第17题:

     A user issues a SELECT command against the Oracle database. Which of the following choices describes a step that Oracle will execute in support of this statement?()

    • A、Acquire locks on table queried 
    • B、Generate redo for statement 
    • C、Fetch data from disk into memory 
    • D、Write changes to disk

    正确答案:C

  • 第18题:

    多选题
    取得查询语句的结果集中的记录函数有()
    A

    mysql_fetch_row

    B

    mysql_fetch_assoc

    C

    mysql_num_rows

    D

    mysql_fetch_array

    E

    mysql_fetch_object


    正确答案: B,C
    解析: 暂无解析

  • 第19题:

    单选题
    The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 INTO :studnum, :firstname, :lastname, :class Which of the following DELETE statements will cause this row to be deleted?()
    A

    DELETE ALL FROM tab01 FOR CURRENT OF csr01

    B

    DELETE FROM tab01 FOR CURRENT csr01 WITH RS

    C

    DELETE * FROM tab01 WHERE CURRENT csr01 WITH CS

    D

    DELETE FROM tab01 WHERE CURRENT OF csr01 WITH RR


    正确答案: C
    解析: 暂无解析

  • 第20题:

    单选题
    关于HQL的连接查询,说法错误的是()。
    A

    inner join 或 join用于内连接

    B

    inner join fetch或 join fetch用于迫切内连接

    C

    left outer join fetch 或 left join fetch用于迫切左外连接

    D

    right outer join fetch 或 right join fetch用于迫切右外连接


    正确答案: D
    解析: 暂无解析

  • 第21题:

    单选题
    Which of the following will begin a new unit of work?()
    A

    The CONNECT statement

    B

    The first FETCH of a cursor

    C

    The BEGIN TRANSACTION statement

    D

    The first executable SQL statement


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    You created the ORDERS table in your database by using the following code:   SQL> CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL> INSERT INTO ORDERS VALUES(’18-AUG-00 10:26:44 PM America/New_York’);   SQL> INSERT INTO ORDERS VALUES(’23-AUG-02 12:46:34 PM America/New_York’);   SQL> COMMIT;   Next, you issued the following statement to change the time zone for the database:   SQL> ALTER DATABASE SET TIME_ZONE=’Europe/London’;   What will be the result of executing the above statement?()
    A

     The statement will fail.

    B

     The statement will be executed successfully, and the new time zone will be set for the database.

    C

     The statement will be executed successfully, but the new time zone will be set for the current session.

    D

    The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    The opening of cursor CSR01 produces the following result set: STUDENT LASTNM FIRSTNM CLASSNO 123 Brown John T100 213 Bailey James T100 312 Carter Arlene T210 465 Chas Devon T305 546 Davis Steven T405 If this Fetch statement is executed: FETCH csr01 INTO :studnum, :firstname, :lastname, :class Which of the following DELETE statements will cause this row to be deleted?()
    A

    DELETE ALL FROM tab01 FOR CURRENT OF csr01

    B

    DELETE FROM tab01 FOR CURRENT csr01 WITH RS

    C

    DELETE * FROM tab01 WHERE CURRENT csr01 WITH CS

    D

    DELETE FROM tab01 WHERE CURRENT OF csr01 WITH RR


    正确答案: D
    解析: 暂无解析

  • 第24题:

    单选题
    To make audit information more productive, the DBA executes the following command before startingan audit operation:  SQL> ALTER SYSTEM SET AUDIT_TRAIL=DB,EXTENDED SCOPE=SPFILE;  Which statement is true regarding the audit record generated when auditing starts after restarting thedatabase()
    A

    It contains only the plan for the SQL statement executed by the user.

    B

    It contains the SQL text executed by the user and the bind variables used with it.

    C

    It contains the plan and statistics associated with the SQL statement executed by the user.

    D

    It contains the plan for the SQL statement executed by the user and the bind variables used with it.


    正确答案: B
    解析: 暂无解析