Query in Stored Routine Returns Unexpected Results

(Doc ID 2096237.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Server - Version 5.0 and later
Information in this document applies to any platform.


A query within a stored routine (procedure, function, event, or trigger) returns unexpected results.


 A local variable has been declared with the same name as a table column / field.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms