My Oracle Support Banner

How Foreign Key Constraints Affect Indexes (Doc ID 2237820.1)

Last updated on MARCH 04, 2020

Applies to:

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


Qn1: How can I find what tables are using foreign keys in my schema?
Qn2: Are indexes on foreign key columns created automatically or do I have to create them?
Qn3: Show if no index is created for the foreign key column, one will be automatically created?
Qn4: What happens if I create a foreign key and an index already exists on that column?


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.