单选题What is true regarding InnoDB locking?()A InnoDB uses row and table-level locks, but row locks are not escalatesB InnoDB locks only those rows that are updatedC InnoDB only uses row locks, not page or table-level locksD InnoDB row locks may be escalate

题目
单选题
What is true regarding InnoDB locking?()
A

InnoDB uses row and table-level locks, but row locks are not escalates

B

InnoDB locks only those rows that are updated

C

InnoDB only uses row locks, not page or table-level locks

D

InnoDB row locks may be escalated to page or table-level locks

E

InnoDB uses row-level or table-level locks depending on the number of rows affected


相似考题
更多“单选题What is true regarding InnoDB locking?()A InnoDB uses row and table-level locks, but row locks are not escalatesB InnoDB locks only those rows that are updatedC InnoDB only uses row locks, not page or table-level locksD InnoDB row locks may be escalate”相关问题
  • 第1题:

    在Mysql数据库下,以下哪个选项最好地描述了InnoDB表为什么需要主键并且主键应当尽量短?()

    A.因为InnoDB在一个日志中保存到所有主键的指针,短的主键使日志小

    B.因为InnoDB使用主键定位二级索引,短的主键使查询快

    C.因为InnoDB使用主键定位表记录,短的主键使查询快

    D.因为InnoDB使用主键定位表,短的主键使查询快


    参考答案:C

  • 第2题:

    简述MyISAM与innoDB存储引擎有何差别?


    正确答案: A.两者在文件构成上有区别;
    B.InnoDB支持事务处理,MyISAM不支持;
    C.对无WHERE子句的COUNT(*)操作的不同:MyISAM中保存了该值,直接读取,InnoDB需要作全表扫描;
    D.锁的区别:InnoDB支持表级锁和行级锁,MyISAM只支持表级锁;
    E.索引会缓存数据,而MYISAM不会;
    F.INNODB不区分char和varchar;
    G.INNODB支持hash索引,而MYISAM不支持;
    H.InnoDB不支持FULLTEXT类型的索引;
    I.InnoDB 中不保存表的具体行数,也就是说,执行select count(*) from table时,InnoDB要扫描一遍整个表来计算有多少行,但是MyISAM只要简单的读出保存好的行数即可。注意的是,当count(*)语句包含
    W.here条件时,两种表的操作是一样的;
    J.对于AUTO_INCREMENT类型的字段,InnoDB中必须包含只有该字段的索引,但是在MyISAM表中,可以和其他字段一起建立联合索引;
    K.DELETE FROM table时,InnoDB不会重新建立表,而是一行一行的删除;
    L.LOAD TABLE FROM
    M.ASTER操作对InnoDB是不起作用的,解决方法是首先把InnoDB表改成MyISAM表,导入数据后再改成InnoDB表,但是对于使用的额外的InnoDB特性(例如外键)的表不适用。

  • 第3题:

    How does DB2 protect the integrity of indexes when data is updated?()

    • A、Locks are acquired on the data.
    • B、Locks are acquired on index keys.
    • C、Locks are acquired on index pages.
    • D、Locks are acquired on index pointers.

    正确答案:A

  • 第4题:

    Which three statements about subqueries are true?()

    • A、A single row subquery can retrieve only one column and one row.
    • B、A single row subquery can retrieve only one row but many columns.
    • C、A multiple row subquery can retrieve multiple rows and multiple columns.
    • D、A multiple row subquery can be compared by using the ">" operator.
    • E、A single row subquery can use the IN operator.
    • F、A multiple row subquery can use the "=" operator.

    正确答案:B,C,D

  • 第5题:

    Following a server crash, the automatic recovery of InnoDB fails. How would you begin to manually repair the InnoDB tables?()

    • A、Start the server with the – innodb_recover_options option set to FORCE
    • B、Start the server with the – innodb_force_recovery option set to a non-zero value
    • C、Start the server as usual, and then execute the REPAIR TABLE command
    • D、Start the server as usual, and then execute the CHECK TABLE command

    正确答案:B

  • 第6题:

    Which two statements are true about InnoDB auto-increment locking?()

    • A、The auto-increment lock can be a table-level lock
    • B、InnoDB never uses table-level locks
    • C、Some settings for innodb_autoinc_lock_mode can help reduce locking
    • D、InnoDB always protects auto-increment updates with a table-level lock

    正确答案:A,C

  • 第7题:

    The InnoDB engine has a feature known as clustered indexes. Which three statements are true about clustered indexes as used in InnoDB?()

    • A、A primary key must exist for creation of a clustered index
    • B、A clustered index allows fulltext searching within InnoDB
    • C、The first unique index is always used as a clustered index and not a primary key
    • D、A clustered index provides direct access to a page containing row data
    • E、If no indexes exist, a hidden clustered index is generated based on row IDs
    • F、A primary key is used as a clustered index
    • G、A clustered index is a grouping of indexes from different tables into a global index for faster searching

    正确答案:D,E,F

  • 第8题:

    Which two statements are true regarding single row functions?()

    • A、They accept only a single argument 
    • B、They can be nested only to two levels 
    • C、Arguments can only be column values or constants 
    • D、They always return a single result row for every row of a queried table 
    • E、They can return a data type value different from the one that is referenced

    正确答案:D,E

  • 第9题:

    多选题
    Which two statements are true about InnoDB auto-increment locking?()
    A

    The auto-increment lock can be a table-level lock

    B

    InnoDB never uses table-level locks

    C

    Some settings for innodb_autoinc_lock_mode can help reduce locking

    D

    InnoDB always protects auto-increment updates with a table-level lock


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

  • 第10题:

    单选题
    Which of the following best describes how locks are used in DB2?()
    A

    To maintain control of updated rows for commit processing

    B

    To ensure only committed changes are altered by another application

    C

    To allow two applications to update the same row of data simultaneously

    D

    To prevent multiple applications from accessing the same data simultaneously


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

  • 第11题:

    多选题
    The InnoDB engine has a feature known as clustered indexes. Which three statements are true about clustered indexes as used in InnoDB?()
    A

    A primary key must exist for creation of a clustered index

    B

    A clustered index allows fulltext searching within InnoDB

    C

    The first unique index is always used as a clustered index and not a primary key

    D

    A clustered index provides direct access to a page containing row data

    E

    If no indexes exist, a hidden clustered index is generated based on row IDs

    F

    A primary key is used as a clustered index

    G

    A clustered index is a grouping of indexes from different tables into a global index for faster searching


    正确答案: D,E,F
    解析: 暂无解析

  • 第12题:

    单选题
    A SQL Azure database generates an error when a row is inserted into any table in the database.  No error is generated when a row is deleted.  You need to recommend an approach for locating the source of the errors.  What should you recommend?()
    A

     Use a Dynamic Management View to check for locks.

    B

     Use a Dynamic Management View to check for blocked queries.

    C

     Use a Dynamic Management View to check for long-running queries.

    D

     Use a Dynamic Management View to check the size and maximum size of the database.


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

  • 第13题:

    Onboard a Ro-Ro vessel many decks are used for the carriage of both rolling and container cargoes,as such it is most useful if a deck socket accepts both ______.

    A.Twist-Locks and lashing hooks

    B.Container locks and bridge fittings

    C.Bridge fittings and lashing hooks

    D.Twist-locks and container locks


    正确答案:A

  • 第14题:

    Which two of statements are true?()

    • A、It is possible to synchronize static methods.
    • B、When a thread has yielded as a result of yield(), it releases its locks.
    • C、When a thread is sleeping as a result of sleep(), it releases its locks.
    • D、The Object.wait() method can be invoked only from a synchronized context.
    • E、The Thread.sleep() method can be invoked only from a synchronized context.
    • F、When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.

    正确答案:A,D

  • 第15题:

    Which of the following best describes how locks are used in DB2?()

    • A、To maintain control of updated rows for commit processing
    • B、To ensure only committed changes are altered by another application
    • C、To allow two applications to update the same row of data simultaneously
    • D、To prevent multiple applications from accessing the same data simultaneously

    正确答案:B

  • 第16题:

    What is true regarding InnoDB locking?()

    • A、InnoDB uses row and table-level locks, but row locks are not escalates
    • B、InnoDB locks only those rows that are updated
    • C、InnoDB only uses row locks, not page or table-level locks
    • D、InnoDB row locks may be escalated to page or table-level locks
    • E、InnoDB uses row-level or table-level locks depending on the number of rows affected

    正确答案:B

  • 第17题:

    User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of locks that this scenario would lead to?()

    • A、null lock on the row being updated
    • B、null lock on the table containing the row
    • C、ROW SHARE lock for the row being updated
    • D、ROW EXCLUSIVE lock for the row being updated
    • E、shared row-exclusive lock for the row being updated
    • F、a shareable table lock for the table containing the row
    • G、exclusive table-level lock for the table containing the row

    正确答案:D,F

  • 第18题:

    Which two statements describe good practices for an application developer to reduce lockingconflicts in Oracle database()

    • A、Avoid coding unnecessary long-running transactions.
    • B、Allow the database to handle locks in default locking mode.
    • C、Always explicitly code the locks as per the requirement of the application.
    • D、Allow escalation of row locks to block locks if too many row locks cause problem.

    正确答案:A,B

  • 第19题:

    A SQL Azure database generates an error when a row is inserted into any table in the database.  No error is generated when a row is deleted.  You need to recommend an approach for locating the source of the errors.  What should you recommend?()  

    • A、 Use a Dynamic Management View to check for locks.
    • B、 Use a Dynamic Management View to check for blocked queries.
    • C、 Use a Dynamic Management View to check for long-running queries.
    • D、 Use a Dynamic Management View to check the size and maximum size of the database.

    正确答案:D

  • 第20题:

    单选题
    Following a server crash, the automatic recovery of InnoDB fails. How would you begin to manually repair the InnoDB tables?()
    A

    Start the server with the – innodb_recover_options option set to FORCE

    B

    Start the server with the – innodb_force_recovery option set to a non-zero value

    C

    Start the server as usual, and then execute the REPAIR TABLE command

    D

    Start the server as usual, and then execute the CHECK TABLE command


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

  • 第21题:

    多选题
    Which three statements about subqueries are true?()
    A

    A single row subquery can retrieve only one column and one row.

    B

    A single row subquery can retrieve only one row but many columns.

    C

    A multiple row subquery can retrieve multiple rows and multiple columns.

    D

    A multiple row subquery can be compared by using the “>” operator.

    E

    A single row subquery can use the IN operator.

    F

    A multiple row subquery can use the “=” operator.


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

  • 第22题:

    单选题
    在Mysql数据库下,以下哪个选项最好地描述了InnoDB表为什么需要主键并且主键应当尽量短?()
    A

    因为InnoDB在一个日志中保存到所有主键的指针,短的主键使日志小

    B

    因为InnoDB使用主键定位二级索引,短的主键使查询快

    C

    因为InnoDB使用主键定位表记录,短的主键使查询快

    D

    因为InnoDB使用主键定位表,短的主键使查询快


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

  • 第23题:

    多选题
    User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of locks that this scenario would lead to?()
    A

    null lock on the row being updated

    B

    null lock on the table containing the row

    C

    ROW SHARE lock for the row being updated

    D

    ROW EXCLUSIVE lock for the row being updated

    E

    shared row-exclusive lock for the row being updated

    F

    a shareable table lock for the table containing the row

    G

    exclusive table-level lock for the table containing the row


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