QuestionQ186Verified/Manipulating DataCopy linkReport a problemAsk AstroTutorSave questionWhich two statements regarding TRUNCATE and DELETE are correct?Choose twoADELETE can use a WHERE clause to determine which row(s) should be removed.BTRUNCATE can use a WHERE clause to determine which row(s) should be removed.CTRUNCATE leaves any indexes on the table in an UNUSABLE state.DThe result of a TRUNCATE can be undone by issuing a ROLLBACK.EThe result of a DELETE can be undone by issuing a ROLLBACK.Show AnswerAnswerExplanationDELETE supports a WHERE clause to remove only rows that satisfy a condition. Because DELETE is transactional DML, its uncommitted changes can be reversed with ROLLBACK. TRUNCATE removes all rows, cannot use a WHERE clause, and cannot be rolled back.Learn moreOracle Database SQL Language Reference: DELETEOracle Database SQL Language Reference: TRUNCATE TABLEShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion