Updated on 2024-07-19 GMT+08:00

Boolean

Overview

MySQL supports both BOOL and BOOLEAN. DSC supports the following type conversions:

Type Mapping

Input: BOOL/BOOLEAN

1
2
3
4
5
CREATE TABLE IF NOT EXISTS `runoob_dataType_test`(
    `dataType_1` INT,
    `dataType_2` BOOL,
    `dataType_3` BOOLEAN
);

Output

1
2
3
4
5
6
7
8
9
CREATE TABLE IF NOT EXISTS "public"."runoob_datatype_test"
(
  "datatype_1" INTEGER,
  "datatype_2" BOOLEAN,
  "datatype_3" BOOLEAN
)
  WITH ( ORIENTATION = ROW, COMPRESSION = NO )
  NOCOMPRESS
  DISTRIBUTE BY HASH ("datatype_1");