DEC

USAGE

DEC[(<precision>[,<scale>])] [SIGNED | UNSIGNED] [ZEROFILL]

DETAILS

Data Type

Precision

Scale

DEC SIGNED (the default)

0..255
if omitted or 0, the default is 10
0..31
the default is 0

DEC UNSIGNED

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

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

CREATE TABLE dec_example (
   example DEC
);
SHOW CREATE TABLE dec_example\G
*************************** 1. row ***************************
       Table: dec_example
Create Table: CREATE TABLE `dec_example` (
  `example` decimal(10,0)
) 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