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.

Symptoms

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

Changes

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

Cause

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