Which statement is true regarding the DELETE command?

User A executes the following command to drop a large table in your database: SQL>DROP

TABLE trans; While the drop table operation is in progress; user B executes the following
command on the same table; SQL>DELETE FROM trans WHERE tr_type=’SL’; Which
statement is true regarding the DELETE command?

User A executes the following command to drop a large table in your database: SQL>DROP

TABLE trans; While the drop table operation is in progress; user B executes the following
command on the same table; SQL>DELETE FROM trans WHERE tr_type=’SL’; Which
statement is true regarding the DELETE command?

A.
It fails to delete the records because the records are locked in the SHARE mode

B.
It deletes the rows successfully because the table is locked in SHARE ROW EXCLUSIVE
mode

C.
It deletes the rows successfully because the table is locked in the SHARE mod

D.
It fails to delete the records because the table is locked in EXCLUSIVE mode



Leave a Reply 3

Your email address will not be published. Required fields are marked *


chu

chu

The answer is:
D.
It fails to delete the records because the table is locked in EXCLUSIVE mode

Saurabh

Saurabh

Answer is option A.

When an DDL statement executes it creates an share lock not a exclusive lock.

Carlos

Carlos

DDL statements requires exclusive locks on the objects.