QuestionQ238Verified/Manipulating DataCopy linkReport a problemAsk AstroTutorSave questionWhich two statements are true about using the FOR UPDATE clause in a SELECT statement?Choose twoAIt can be used with SET operators (UNION, INTERSECT etc.).BIt cannot be used with the DISTINCT keyword.CIf the NOWAIT clause is added, the statement will automatically acquire locks from their owning transactions and not wait.DThe statement skips rows locked by other transactions.EIt can be used with joins.Show AnswerAnswerExplanationOracle Database does not allow the FOR UPDATE clause with the DISTINCT operator or set operators. It can be used with joins; the OF column clause can limit locking to rows from a particular table or view in the join. NOWAIT immediately fails when a conflicting lock exists, while SKIP LOCKED is the option that omits rows locked by other transactions.Learn moreOracle Database SQL Language Reference — SELECTShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion