When Using a Multiple-column Primary Key (PK) With Always True Condition, MySQL Returns Only the First Row (Doc ID 2268046.1)

Last updated on MAY 29, 2017

Applies to:

MySQL Server - Version 5.5 to 5.5 [Release 5.5]
Information in this document applies to any platform.

Symptoms

When using a multiple-column primary key and an always true condition (y<=3 OR y>3), MySQL only returns the first row match.

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