INT2

USAGE

INT2[(<display_width>)] [SIGNED | UNSIGNED] [ZEROFILL]

DETAILS

Data Type

Minimum Value

Maximum Value

INT2 SIGNED (the default)

-32768

32767

INT2 UNSIGNED

0

65535

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

While Xpand accepts the INT2 data type on table create, it is silently replaced with SMALLINT:

CREATE TABLE int2_example (
   example INT2
);
SHOW CREATE TABLE int2_example\G
*************************** 1. row ***************************
       Table: int2_example
Create Table: CREATE TABLE `int2_example` (
  `example` smallint(6)
) CHARACTER SET utf8 /*$ SLICES=3 */

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES