SQL Server and MariaDB Types Comparison

You are viewing an old version of this article. View the current version here.

This page helps to map each SQL Server type to the matching MariaDB type.

Numbers

Integer Numbers

SQL Server TypesSize (bytes)MariaDB TypesSize (bytes)Notes
TINYINT1TINYINT1
SMALLINT2SMALLINT2
2MEDIUMINT3Takes 4 bytes in memory
INT1INT / INTEGER4
BIGINT8BIGINT8

Real Numbers (approximated)

Real Numbers (exact)

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.