Querying a View and Using the View Definition Gives Different EXPLAIN Plans (Doc ID 1457080.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

Having two queries that are the same except one uses a view and the other uses the view definition gives different EXPLAIN outputs

An example is:

 

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