Which two statements are true regarding the DELETE and TRUNCATE commands?

Which two statements are true regarding the DELETE and TRUNCATE commands? (Choose two.)

Which two statements are true regarding the DELETE and TRUNCATE commands? (Choose two.)

A.
DELETE can be used to remove only rows from only one table at a time.

B.
DELETE can be used to remove only rows from multiple tables at a time.

C.
DELETE can be used only on a table that is a parent of a referential integrity constraint.

D.
DELETE can be used to remove data from specific columns as well as complete rows.

E.
DELETE and TRUNCATE can be used on a table that is a parent of a referential integrity constraint having ON DELETE rule .



Leave a Reply 6

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


banu

banu

Option D is not correct?

Wes

Wes

Nope, this one: DELETE can be used to remove data from specific columns as well as complete rows

Lei

Lei

Regarding option E.
Even if the ON DELETE rule (ON DELETE CASCADE or ON DELETE SET NULL) is set for a referential integrity constraint, you can NOT yet truncate the parent table. An error raise:
ORA-02266: unique/primary keys in table referenced by enabled foreign keys