网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Statement接口中的execute Query(String sql)方法返回的数据类型是()

  • A、Statement接口实例
  • B、Connection接口实例
  • C、Database Meta Data类的对象
  • D、Result Set类的对象

参考答案

更多 “Statement接口中的execute Query(String sql)方法返回的数据类型是()A、Statement接口实例B、Connection接口实例C、Database Meta Data类的对象D、Result Set类的对象” 相关考题
考题 使用Command的()方法可以检索数据并将结果返回给Data Reader。 A.Execute ReaderB.Execute ScalarC.Execute NonQueryD.Execute Query

考题 You have an SQL query that takes one minute to execute. You use the following code segment to execute theSQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run while the SQL query is executing.DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?()A.B.C.D.

考题 ContentResolver用什么方法查询Content Provider提供的内容() A.select()B.retrieve()C.query()D.execute()

考题 The EMP table exists in your schema. You want to execute the following query:SELECT ename, salFROM empAS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL ‘6‘ MINUTE)WHERE ename = ‘ALLEN‘;What are the minimum requirements for the statement to execute successfully? ()A. ARCHIVELOG mode must be enabledB. Row Movement must be enabled for the tableC. FLASHBACK must be set to ON for the databaseD. The UNDO_MANAGEMENT parameter must be set to AUTOE. The UNDO_RETENTION parameter must be set appropriately

考题 Examine the data from the ORDERS and CUSTOMERS tables.Evaluate the SQL statement:What is the result when the query is executed?() A.B.C.D. The query fails because the subquery returns more than one row.E. The query fails because the outer query and the inner query are using different tables.

考题 WhichthreevaluesarevalidparametersfortheDO_KEYbuilt-in?() A.ENTERB.GO_ITEMC.VALIDATED.EXIT_FORME.EXECUTE_QUERY

考题 A new report process containing a complex query is written, with high impact on the database. You wantto collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests.For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and theCONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING.What should you do to accomplish this task?()A. Execute the query and view Active Session History (ASH) for information about the query.B. Enable SQL trace for the query.C. Create a database operation, execute the query, and use the DBMS_SQL_MONITOR. REPORT_SQL_MONITOR function to view the report.D. Use the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution and view the information from the V$SESSION_LONGOPS view.

考题 下列()方法是Statement对象所具有的方法。A、executeQuery()B、executeUpdate()C、execute()D、createStatement()

考题 You are working in an online transaction processing (OLTP) environment. You used the FLASHBACK TABLE command to flash back the CUSTOMERS table. Before executing the FLASHBACK TABLE command, the System Change Number (SCN) was 663571. After flashing back the CUSTOMERS table,you realize that the table is not in the correct state and the resultant changes are not what you had desired. So, you need to reverse the effects of the FLASHBACK TABLE command while ensuring that:  a) No other user data in the database is affected.  b) The operation takes the minimum possible time.  Which option would you choose?() A、use the ROLLBACK command with SCN 663571B、perform Flashback Transaction Query with SCN 663571C、execute the FLASHBACK DATABASE statement to retrieve the CUSTOMERS table as it was at SCN 663571D、execute another FLASHBACK TABLE statement to retrieve the CUSTOMERS table as it was at SCN 663571

考题 Your Oracle Database 10g is online when you execute the following statement:        SQLALTER TABLESPACE MY_TABLESPACE FLASHBACK OFF;   What is the result of executing this statement if the Flashback Database feature is already enabled in the database?()A、 The database does not record flashback logs for MY_TABLESPACEB、 The tables residing in MY_TABLESPACE are not protected by the Recycle Bin.C、 All the tablespaces except MY_TABLESPACE can be recovered using Flashback Database feature.D、 None of the flashback technologies, such as Flashback Table, Flashback Transaction Query and Flashback Version Query can be used to recover individual rows within the objects from MY_TABLESPACE

考题 ContentResolver用什么方法查询ContentProvider提供的内容()A、select()B、retrieve()C、query()D、execute()

考题 Staternent类提供3种执行方法,用来执行更新操作的是()。A、executeQuery()B、executeUpdate()C、execute()D、query()

考题 A new report process containing a complex query is written, with high impact on the database. You wantto collect basic statistics about query, such as the level of parallelism, total database time, and the number of I/O requests. For the database instance STATISTICS_LEVEL, the initialization parameter is set to TYPICAL and theCONTROL_MANAGEMENT_PACK_ACCESS parameter is set to DIAGNOSTIC+TUNING. What should you do to accomplish this task?()A、Execute the query and view Active Session History (ASH) for information about the query.B、Enable SQL trace for the query.C、Create a database operation, execute the query, and use the DBMS_SQL_MONITOR. REPORT_SQL_MONITOR function to view the report.D、Use the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure to monitor query execution and view the information from the V$SESSION_LONGOPS view.

考题 You issued the following statement:   SQLALTER DATABASE ENABLE RESUMABLE TIMEOUT n;   What will be the result of issuing the above statement?()A、The command will not execute successfully because TIMEOUT is an invalid clause with the ALTER DATABASE ENABLE RESUMABLE command.B、 The command will not execute successfully because resumable space allocation is enabled at the session level.C、 The command will execute successfully and resumable space will be allocated at the session level.D、 The command will execute successfully and resumable space will be allocated at the instance level.

考题 You work as a database administrator for Certkiller .com. Your database is opened in NOARCHIVEKLOG mode. You decide to place the database in ARCHIVELOG mode.  How would you do this?()A、Execute the ALTER DATABASE ARCHIVELOG statement B、Select ARCHIVELOG option in the database control and restart the database to apply the changes. C、Shut down and start the instance, and in the NOMOUNT state execute the ALTER DATABASE ARCHIVELOG statement. D、Shut down and start the instance, mount the database, then execute the ALTER DATABASE ARCHIVELOG statement. 

考题 Which is an example of a dynamic SELECT statement? ()A、A query whose object names change during its execution. B、A query whose object names are not known until run time. C、A query whose bind variables values change during execution. D、A query whose bind variable values are not known until run time.

考题 You are maintaining your database in Oracle10g. You want to store the information about the backup of the database in the control file. You issue the following statement:    SQLALTER SYSTEM SET CONTROL_FILE_RECORD_KEEP_TIME=400;    What is the outcome of this statement? ()A、 The statement will not execute successfully.B、 The statement will execute successfully, and the backups metadata will be maintained in the control file for 400 daysC、 The statement will execute successfully, and the backups metadata will be maintained in the recovery catalog for 400 days.D、 Backups will be deleted from the media after 400 days.

考题 You work with a database named DB1, which is located on a SQL Server 2005 computer. You discover that a table scan on Table1 in DB1 causes a slow query. Table1 is a very large table that is used frequently. You ascertain that the query contains the following statement. SELECT col1, col2 FROM table1 WHERE col3 =  You need to provide maximum query performance. Table1 must remain available to users. What should you do?()A、Update all statistics on Table1 in DB1.B、Use the CREATE STATISTICS statement in DB1 to create missing statistics on col3of Table1.C、Set the priority boost server option to 1.D、Execute the following statement.USE DB1GOCREATE INDEX index1 ON table1(col3)INCLUDE(col1, col2) WITH (ONLINE = ON)GO

考题 单选题When does Oracle9i flag an index as being used in the V$OBJECT_USAGE view?()A During a query’s parse time only. B During a query’s execution time only. C During any kind of DML statement execution. D During the execution of an INSERT statement only.

考题 单选题You are maintaining your database in Oracle10g. You want to store the information about the backup of the database in the control file. You issue the following statement:    SQLALTER SYSTEM SET CONTROL_FILE_RECORD_KEEP_TIME=400;    What is the outcome of this statement? ()A  The statement will not execute successfully.B  The statement will execute successfully, and the backups metadata will be maintained in the control file for 400 daysC  The statement will execute successfully, and the backups metadata will be maintained in the recovery catalog for 400 days.D  Backups will be deleted from the media after 400 days.

考题 单选题You issued the following statement:   SQLALTER DATABASE ENABLE RESUMABLE TIMEOUT n;   What will be the result of issuing the above statement?()A The command will not execute successfully because TIMEOUT is an invalid clause with the ALTER DATABASE ENABLE RESUMABLE command.B  The command will not execute successfully because resumable space allocation is enabled at the session level.C  The command will execute successfully and resumable space will be allocated at the session level.D  The command will execute successfully and resumable space will be allocated at the instance level.

考题 单选题View the Exhibit and examine the structure of the ORDERS and ORDERJTEMS tables.  Evaluate the following SQL statement:   SELECT oi.order_id, product_jd, order_date   FROM order_items oi JOIN orders o   USING (order_id);   Which statement is true regarding the execution of this SQL statement?()A  The statement would not execute because table aliases are not allowed in the JOIN clause.B  The statement would not execute because the table alias prefix is not used in the USING clause.C  The statement would not execute because all the columns in the SELECT clause are not prefixed with table aliases.D  The statement would not execute because the column part of the USING clause cannot have a qualifier in the SELECT list.

考题 单选题Your Oracle Database 10g is online when you execute the following statement:        SQLALTER TABLESPACE MY_TABLESPACE FLASHBACK OFF;   What is the result of executing this statement if the Flashback Database feature is already enabled in the database?()A  The database does not record flashback logs for MY_TABLESPACEB  The tables residing in MY_TABLESPACE are not protected by the Recycle Bin.C  All the tablespaces except MY_TABLESPACE can be recovered using Flashback Database feature.D  None of the flashback technologies, such as Flashback Table, Flashback Transaction Query and Flashback Version Query can be used to recover individual rows within the objects from MY_TABLESPACE

考题 多选题The EMP table exists in your schema. You want to execute the following query:   SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL ’6’ MINUTE)   WHERE ename = ’ALLEN’;   What are the minimum requirements for the statement to execute successfully?()AARCHIVELOG mode must be enabledBRow Movement must be enabled for the tableCFLASHBACK must be set to ON for the databaseDThe UNDO_MANAGEMENT parameter must be set to AUTOEThe UNDO_RETENTION parameter must be set appropriately

考题 单选题A user executes a query on the EMPtable, which contains thousands of rows, to get details about employees in one of the departments. The user receives the following error:  SQL SELECT ename FROM emp WHERE deptno=10 ORDER BY sal;  SELECT ename FROM emp WHERE deptno=10 ORDER BY sal  ERROR at line 1:  ORA-01157: cannot identify/lock data file  201 - see DBWR trace file ORA-01110: data file 201:’/u01/app/oracle/oradata/orcl/temp01.dbf’  What is a possible reason?()A  The tempfile belonging to the default temporary tablespace is missing.B  The database is opened in restricted mode, so queries are not allowedC  The default temporary tablespace required to execute the query is offline.D  The default temporary tablespace required to execute the query is dropped.E  The default temporary tablespace required to execute the query is read-only.

考题 单选题You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.IAsyncResult ar = cmd.BeginExecuteReader( );You need to execute a method named Do Work( ) that takes one second to run while the SQL query is executing. DoWork( ) must run as many times as possible while the SQL query is executing. Which code segment should you use? ()A while(ar.AsyncWaitHandle==null){DoWork();}dr=cmd.EndExecuteReader(ar);B while(!ar.IsCompleted){DoWork();}dr=cmd.EndExecuteReader(ar);C while(Thread.CurrentThread.ThreadState==ThreadState.Running){DoWork();}dr=cmd.EndExecuteReader(ar);D while(!ar.AsyncWaitHandle.WaitOne()){DoWork();}dr=cmd.EndExecuteReader(ar);

考题 单选题Statement接口中的execute Query(String sql)方法返回的数据类型是()A Statement接口实例B Connection接口实例C Database Meta Data类的对象D Result Set类的对象