QuestionQ45Verified/Retrieving Data Using the SQL SELECT StatementCopy linkReport a problemAsk AstroTutorSave questionWhich statements about the FOR UPDATE clause in a SELECT statement are true?Choose twoAIt locks only the columns specified in the SELECT list.BIt locks the rows that satisfy the condition in the SELECT statement.CIt can be used only in SELECT statements that are based on a single table.DIt can be used in SELECT statements that are based on a single or multiple tables.EAfter it is enforced by a SELECT statement, no other query can access the same rows until a COMMIT or ROLLBACK is issued.Show AnswerAnswerExplanationThe FOR UPDATE clause locks the rows selected by the query—those that satisfy its selection conditions. It may be used with queries involving one table or multiple tables; in a join, an optional OF column clause identifies the table or view rows to lock, rather than locking only the specified columns. The lock prevents other transactions from locking or updating the rows until the transaction ends, but it does not prohibit ordinary read queries from accessing them.Learn moreOracle AI Database SQL Language Reference: SELECTShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion