create table test
(
id serial
constraint idx_17091_primary
primary key,
int_1 integer not null,
int_2 smallint,
int_3 smallint,
int_4 integer,
int_5 bigint,
int_6 double precision,
int_7 double precision,
int_8 numeric(10),
date_1 date,
date_2 time,
date_3 timestamp with time zone,
date_4 timestamp with time zone,
date_5 integer,
str_1 char,
str_2 varchar(255),
str_3 bytea,
str_4 bytea,
str_5 bytea,
str_6 text,
str_8 test_str_8[],
json_1 json
);
comment on table test is '测试表';
comment on column test.int_1 is 'int';
comment on column test.int_2 is 'smallint';
comment on column test.int_3 is 'tinyint';
comment on column test.int_4 is 'mediumint';
comment on column test.int_5 is 'bigint';
comment on column test.int_6 is 'float';
comment on column test.int_7 is 'double';
comment on column test.int_8 is 'decimal';
comment on column test.date_1 is 'date';
comment on column test.date_2 is 'time';
comment on column test.date_3 is 'datetime';
comment on column test.date_4 is 'timestamp';
comment on column test.date_5 is 'year';
comment on column test.str_1 is 'char';
comment on column test.str_2 is 'varchar(255)';
comment on column test.str_3 is 'binary';
comment on column test.str_4 is 'varbinary(1)';
comment on column test.str_5 is 'blob';
comment on column test.str_6 is 'text';
comment on column test.str_8 is 'set';
comment on column test.json_1 is 'json';
mysql version:
select version();
: 8.3.0 postgresql version:postgres --version
: postgres (PostgreSQL) 16.1 (Homebrew) pgloader version:./build/bin/pgloader
: pgloader version "3.6.2079646" compiled with SBCL 2.4.1mysql table:
postgresql table: