DOUBLE PRECISION
You are viewing an old version of this article. View
the current version here.
Syntax
DOUBLE PRECISION[(M,D)] [SIGNED | UNSIGNED | ZEROFILL] REAL[(M,D)] [SIGNED | UNSIGNED | ZEROFILL]
Description
REAL and DOUBLE PRECISION are synonyms for DOUBLE.
Exception: If the REAL_AS_FLOAT SQL mode is enabled, REAL is a synonym for FLOAT rather than DOUBLE.
See also: Data Types for MariaDB Enterprise Server 11.4, in 10.6 ES, in 10.5 ES, in 10.4 ES, in 10.3 ES, in 10.2 ES, in 10.6 CS, in 10.5 CS, in 10.4 CS, in 10.3 CS, and in 10.2 CS.
EXAMPLES
CREATE TABLE double_precision_example ( example DOUBLE PRECISION );
SHOW CREATE TABLE double_precision_example\G <</code>> <<sql>> *************************** 1. row *************************** Table: double_precision_example Create Table: CREATE TABLE `double_precision_example` ( `example` double DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.