Need some help? Ask here.
ASK A QUESTION.

Thanks for taking the time to reach out to us! We take support and feedback extremely seriously and will get back to you as soon as possible.

SUBMIT
QUESTION.

Data Types

MemSQL supports the following data types:

Integer Numbers

BOOL, BOOLEAN
TINYINT
SMALLINT
INT, INTEGER
MEDIUMINT
BIGINT

Real Numbers

DOUBLE
DEC, FIXED, DECIMAL
NUMERIC
NEWDECIMAL

Time and Date

DATE
TIME
TIMESTAMP
DATETIME
YEAR

String Types

CHAR(LENGTH)
VARCHAR
TINYTEXT
TEXT
MEDIUMTEXT
LONGTEXT

BINARY(LENGTH)
VARBINARY
TINYBLOB
BLOB
MEDIUMBLOB
LONGBLOB

ENUM
SET

Note

MemSQL requires that CHAR and BINARY be specified with a length. Values of type CHAR require 4 x LENGTH bytes of memory, as MemSQL only supports the utf8 charset (for more info see String Encoding and Collations). Values of type BINARY require LENGTH bytes of memory.

Table Of Contents

Previous topic

Expressions

Next topic

Lock and Unlock Syntax