SET .. SELECT Takes More Locks Than Equivalent SELECT .. INTO Syntax
(Doc ID 2813867.1)
Last updated on OCTOBER 12, 2021
Applies to:MySQL Server - Version 5.7 and later
Information in this document applies to any platform.
On two otherwise equivalent statements, their are row locks on the one, but not the other:
Locking statement syntax:
New query or application was changed to use SET @var:=(SELECT ...); which introduces more locking and potential for deadlocks.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document