My Oracle Support Banner

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

Last updated on SEPTEMBER 07, 2023

Applies to:

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

Goal

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

Solution

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
Goal
Solution
References

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