更多“在public void onCreate(SQLite Database db)方法中执行SQL语句的方法是?()A、sql Able Database()B、Exec SQL()C、db.exec SQL()D、db.exec()”相关问题
  • 第1题:

    在高级语言中使用SQL语句时,所有SQL语句前都必须加前缀______。

    A.CALL SQL

    B.DO SQL

    C.EXEC SQL

    D.GOTO SQL


    正确答案:C

  • 第2题:

    SQL注入,是开发者在代码中使用SQL语句时,要先生成SQL语句,然后调用函数执行这条SQL语句。如果错误地直接将用户输入拼接到SQL语句中,就有可能产生非预期的结果,从而将用户输入当作SQL语句执行。


    正确答案:正确

  • 第3题:

    SQL Server中进行数据库备份的SQL语句是()。

    • A、INSERT DATABASE
    • B、BACKUP DATABASE
    • C、RESTORE DATABASE
    • D、UPDATE DATABASE

    正确答案:B

  • 第4题:

    To view the results of the most recent Automatic SQL Tuning Advisor task, which sequence should you follow?()

    • A、EM Database home page, Software and Support, SQL Advisors, Automatic SQL Tuning Advisor.
    • B、EM Database home page, Software and Support, Advisor Central, SQL Advisors, Automatic SQL Tuning Advisor.
    • C、EM Database home page, Software and Support, Support Workbench, Advisor Central, SQL Advisors, Automatic SQL Tuning Advisor.
    • D、Either B or C
    • E、All of the above

    正确答案:D

  • 第5题:

    宏命令RunSQL的功能是()

    • A、执行指定的SQL语句
    • B、执行指定的查询中的SQL语句
    • C、使用SQL在表中查询
    • D、使用SQL语句设置指定属性值

    正确答案:A

  • 第6题:

    Which of the following represents the correct way to perform an online recovery of datafile 4, which is assigned to a tablespace called USERS?()  

    • A、 shutdown restore datafile 4; recover datafile 4; alter database open;
    • B、 Sql alter database datafile 4 offline; restore datafile 4; recover datafile 4; alter database open;
    • C、 Sql alter database datafile 4 offline; restore datafile 4; Sql alter database datafile 4 online;
    • D、 Sql alter database datafile 4 offline; restore database datafile 4; recover database datafile 4;Sql alter database datafile 4 online;
    • E、 Sql alter database datafile 4 offline; restore datafile 4; recover datafile 4; Sql alter database datafile 4 online;

    正确答案:E

  • 第7题:

    You are planning the deployment of a SQL Azure database.  Your company has a Volume Licensing Agreement for Microsoft SQL Server 2008. The SQL Azure database must maintain a monthly availability of 99.9%.   You need to recommend an approach for minimizing the monthly expenses associated with the SQL Azure database.  What should you recommend?()

    • A、 Add a processor license to the existing SQL Server licensing agreement.
    • B、 Purchase a Windows Azure consumption platform subscription.
    • C、 Purchase a SQL Server Services Provider Licensing Agreement (SPLA).
    • D、 Purchase a SQL Server Web license to extend the existing SQL Server licensing agreement.

    正确答案:B

  • 第8题:

    Your company uses a mission-critical database named DB1, which is located on a server named SQL1. You want to mirror DB1 on a second server named SQL2. Before you can establish database mirroring, you need to prepare DB1 and the servers for mirroring. Which three actions should you perform?()

    • A、 Set the recovery model of DB1 on SQL1 to bulk-logged recovery. 
    • B、 Set the recovery model of DB1 on SQL1 to full recovery. 
    • C、 Back up DB1 on SQL1. Restore the backup on SQL2; specify the NORECOVERY option. 
    • D、 Back up DB1 on SQL1. Restore the backup on SQL2; specify the STANDBY option. 
    • E、 Back up DB1 on SQL1. Restore the backup on SQL2; specify the RECOVERY option.
    • F、 Create endpoints on all participating servers. 
    • G、 Set the AutoShrink property of DB1 on SQL1 to false.

    正确答案:B,C,F

  • 第9题:

    单选题
    You are designing a strategy for synchronizing a SQL Azure database and multiple remote Microsoft SQL Server 2008 databases.  The SQL Azure database contains many tables that have circular foreign key relationships.  You need to recommend an approach for ensuring that all changes in the remote databases synchronize with the SQL Azure database.  What should you recommend?()
    A

     Use SQLAzure Data Sync Service.

    B

     Use SQL Server replication.

    C

     Use SQL Server backup and restore.

    D

     Use SQL Server database snapshots.


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

  • 第10题:

    单选题
    Which statement correctly describes SQL and /SQL*Plus?()
    A

    Both SQL and /SQL*plus allow manipulation of values in the database.

    B

    /SQL* Plus recognizes SQL satement and sends them to the server; SQL is the Oracle proprietary interface for executing SQL statements.

    C

    /SQL* Plus language for communicating with the Oracle server to access data; SQL recognizes SQL statements and sends them to the server.

    D

    /SQL manipulates data and table definition in the database; /SQL* Plus does not allow manipulation of values in the database.


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

  • 第11题:

    单选题
    SQL中删除基本表的语句是()()
    A

    Drop Database   …

    B

    Drop Table     …

    C

    Create   Database   …

    D

    Create    Table     …


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

  • 第12题:

    单选题
    You want to configure the Flashback Database feature and retain flashback logs for three days.  Presently the database is open and configured in ARCHIVELOG mode. The following steps must be performed in the correct sequence to do this:   1. Set the retention target:  SQL> ALTER SYSTEM SET DB_FLASHBACK_RETENTION_TARGET=4320;  2. Enable Flashback Database:  SQL> ALTER DATABASE FLASHBACK ON;  3. Mount the database:  SQL> STARTUP MOUNT EXCLUSIVE  4. Shutdown the instance: SQL> SHUTDOWN IMMEDIATE  5. Open the database:  SQL> ALTER DATABASE OPEN;   Choose the correct sequence.()
    A

     4, 1, 3, 2, 5

    B

     4, 3, 1, 2, 5

    C

     2, 4, 3, 5, 1

    D

     4, 2, 5, 3, 1


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

  • 第13题:

    SQL Server中进行数据库恢复的SQL语句是()。

    AINSERT DATABASE

    BBACKUP  DATABASE

    CRESTORE  DATABASE

    DUPDATE DATABASE


    C

  • 第14题:

    You work in a company which is named Wiikigo Corp. The company uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance. There is a database named DB1 in the instance. DB1 is available to a Windows group which is named WIIKIGO/Supervisors. A Windows user named User1 is a member of the WIIKIGO/Supervisors group. WIIKIGO/Supervisors is a member of the db_owner role in the DB1 database. You must make sure that the SQL Server instance is available to User1. In the DB1 database, which Transact-SQL statement(s) should you execute?()  

    • A、 DROP LOGIN "WIIKIGO/User1"; 
    • B、 EXEC dbo.sp_droprolemember 'db_owner', 'WIIKIGO/User1';
    • C、 EXEC dbo.sp_revokedbaccess 'WIIKIGO/User1';EXEC dbo.sp_revokelogin 'WIIKIGO/User1'; 
    • D、 CREATE LOGIN "WIIKIGO/User1" FROM Windows;DENY CONNECT SQL TO "WIIKIGO/User1";

    正确答案:D

  • 第15题:

    Which statement correctly describes SQL and /SQL*Plus?()

    • A、Both SQL and /SQL*plus allow manipulation of values in the database.
    • B、/SQL* Plus recognizes SQL satement and sends them to the server; SQL is the Oracle proprietary interface for executing SQL statements.
    • C、/SQL* Plus language for communicating with the Oracle server to access data; SQL recognizes SQL statements and sends them to the server.
    • D、/SQL manipulates data and table definition in the database; /SQL* Plus does not allow manipulation of values in the database.

    正确答案:A

  • 第16题:

    在ADO.NET中,对于Command对象的ExecuteNonQuery()方法和ExecuteReader()方法,下面叙述错误的是()

    • A、insert、update、delete等操作的Sql语句主要用ExecuteNonQuery()方法来执行;
    • B、ExecuteNonQuery()方法返回执行Sql语句所影响的行数。
    • C、Select操作的Sql语句只能由ExecuteReader()方法来执行;
    • D、ExecuteReader()方法返回一个DataReder对象;

    正确答案:C

  • 第17题:

    RMAN enables you to open the target database when it is already mounted. Which command must you execute at the RMAN prompt to open the database?()

    • A、’SQL ALTER DATABASE OPEN’;
    • B、SQL ALTER DATABASE ’OPEN’;
    • C、OPEN DATABASE;
    • D、DATABASE OPEN

    正确答案:C

  • 第18题:

    To view the results of the most recent Automatic SQL Tuning Advisor task,which sequence should you follow?()  

    • A、 EM Database home page,Software and Support,SQL Advisors,Automatic SQL Tuning Advisor
    • B、 EM Database home page,Software and Support,Advisor Central,SQL Advisors,Automatic SQL Tuning Advisor
    • C、 EM Database home page,Software and Support,Support Workbench,Advisor Central,SQL Advisors,Automatic SQL Tuning Advisor
    • D、 Either B or C
    • E、 All of the above

    正确答案:D

  • 第19题:

    You are designing a strategy for synchronizing a SQL Azure database and multiple remote Microsoft SQL Server 2008 databases.  The SQL Azure database contains many tables that have circular foreign key relationships.  You need to recommend an approach for ensuring that all changes in the remote databases synchronize with the SQL Azure database.  What should you recommend?()

    • A、 Use SQLAzure Data Sync Service.
    • B、 Use SQL Server replication.
    • C、 Use SQL Server backup and restore.
    • D、 Use SQL Server database snapshots.

    正确答案:A

  • 第20题:

    单选题
    To view the results of the most recent Automatic SQL Tuning Advisor task, which sequence should you follow?()
    A

    EM Database home page, Software and Support, SQL Advisors, Automatic SQL Tuning Advisor.

    B

    EM Database home page, Software and Support, Advisor Central, SQL Advisors, Automatic SQL Tuning Advisor.

    C

    EM Database home page, Software and Support, Support Workbench, Advisor Central, SQL Advisors, Automatic SQL Tuning Advisor.

    D

    Either B or C

    E

    All of the above


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

  • 第21题:

    单选题
    宏命令RunSQL的功能是()
    A

    执行指定的SQL语句

    B

    执行指定的查询中的SQL语句

    C

    使用SQL在表中查询

    D

    使用SQL语句设置指定属性值


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

  • 第22题:

    单选题
    在public void onCreate(SQLite Database db)方法中执行SQL语句的方法是?()
    A

    sql Able Database()

    B

    Exec SQL()

    C

    db.exec SQL()

    D

    db.exec()


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

  • 第23题:

    多选题
    Your company uses a mission-critical database named DB1, which is located on a server named SQL1. You want to mirror DB1 on a second server named SQL2. Before you can establish database mirroring, you need to prepare DB1 and the servers for mirroring. Which three actions should you perform?()
    A

    Set the recovery model of DB1 on SQL1 to bulk-logged recovery.

    B

    Set the recovery model of DB1 on SQL1 to full recovery.

    C

    Back up DB1 on SQL1. Restore the backup on SQL2; specify the NORECOVERY option.

    D

    Back up DB1 on SQL1. Restore the backup on SQL2; specify the STANDBY option.

    E

    Back up DB1 on SQL1. Restore the backup on SQL2; specify the RECOVERY option.

    F

    Create endpoints on all participating servers.

    G

    Set the AutoShrink property of DB1 on SQL1 to false.


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