QuestionQ189Verified/Creating and Managing TablesCopy linkReport a problemAsk AstroTutorSave questionWhich three statements are correct about the ALTER TABLE ... DROP COLUMN ... command?Choose threeAA column can be dropped only if it does not contain any data.BA column can be dropped only if another column exists in the table.CA dropped column can be rolled back.DThe column in a composite PRIMARY KEY with the CASCADE option can be dropped.EA parent key column in the table cannot be dropped.Show AnswerAnswerExplanationA table must retain at least one column. Dropping a column is DDL, so it cannot be reversed with ROLLBACK, and the column may contain data. CASCADE CONSTRAINTS allows a column in a composite primary key to be dropped by removing dependent constraints. A parent-key column cannot be dropped while dependent referential constraints remain in place; those dependencies must be removed or cascaded.Learn moreOracle Database SQL Language Reference: ALTER TABLEShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion