QuestionQ45

VerifiedRetrieving Data Using the SQL SELECT Statement

Which statements about the FOR UPDATE clause in a SELECT statement are true?

Choose two
Explanation

The 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 more

Community Discussion

No comments yet. Be the first to start the discussion!