My Oracle Support Banner

MySQL DOUBLE type is not suitable for use as a PRIMARY KEY (Doc ID 2675754.1)

Last updated on AUGUST 24, 2020

Applies to:

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


The MySQL data type DOUBLE / FLOAT should not be used as or as part of the PRIMARY KEY of a table.




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.