My Oracle Support Banner

How to Find Tables Without Primary Keys Via information_schema (Doc ID 2081186.1)

Last updated on MARCH 24, 2022

Applies to:

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


Find all user-defined tables with no primary key defined.


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.