Data Types for MariaDB Xpand
This page is part of MariaDB's Documentation.
The parent of this page is: Data Types
Topics on this page:
Overview
MariaDB Xpand supports many data types.
Compatibility
MariaDB Xpand 5.3
MariaDB Xpand 6.0
MariaDB Xpand 6.1
Supported Data Types
Data Types supported by Xpand include:
BIGINT
BINARY
BIT
BLOB
BOOL
CHAR
CLOB
(starting with Xpand 6.1)DATE
andDATETIME
including Fractional SecondsDECIMAL (M,D)
DOUBLE (M,D)
DOUBLE PRECISION (M,D)
(is treated asDOUBLE
)ENUM ("A")
FLOAT (M,D)
INT
JSON
LONGBLOB
LONGTEXT
MEDIUMBLOB
MEDIUMINT
MEDIUMTEXT
NATIONAL VARCHAR
(starting with Xpand 6.1)NUMERIC (M,D)
(is treated asDECIMAL
)NVARCHAR
(starting with Xpand 6.1)REAL
(is treated asDOUBLE
)SERIAL
(is treated asBIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT
)SET ("A","B") SMALLINT TEXT TIME TIMESTAMP
SMALLINT
TEXT
TIME
TINYBLOB
TINYINT
TINYTEXT
VARBINARY
VARCHAR
YEAR
The full list of supported data types for MariaDB Xpand are available in reference. For additional information, see "Data Type Reference for MariaDB Xpand".
Unsupported Data Types
Xpand does not support:
Spatial Extensions
Caveats for Data Type Support
Xpand permits table definitions that use the
VARCHAR
data type with no max length, and supply a default max length of21845
. MySQL does not permit this.