データベースメタ情報からインターフェースを作成したときの主な型の対応は以下の通り
項目の型 | IOP-toolの型 | 項目長 | 小数部長 | |
int2 | → | NUM | 5 | |
int4 | → | NUM | 10 | |
int8 | → | NUM | 19 | |
numeric(4) | → | NUM | 4 | |
numeric(8) | → | NUM | 8 | |
numeric(16) | → | NUM | 16 | |
numeric(4,2) | → | NUM | 4 | 2 |
numeric(8,4) | → | NUM | 8 | 4 |
numeric(16,8) | → | NUM | 16 | 8 |
float4 | → | STRING | 4 | |
float8 | → | STRING | 8 | |
varchar(10) | → | STRING | 10 | |
varchar(1000) | → | STRING | 1000 | |
bpchar(10) | → | STRING | 10 | |
bpchar(1000) | → | STRING | 1000 | |
text | → | STRING | 4000 | |
bytea | → | IMAGE | 4000 | |
date | → | DATE | 13 | |
timestamp | → | DATE_TIME | 11 | 6 |
timestamptz | → | DATE_TIME | 13 | 6 |
CREATE TABLE sampletbl ( item_smallint smallint NOT NULL, item_integer int, item_bigint bigint, item_numeric4_0 numeric(4), item_numeric8_0 numeric(8), item_numeric16_0 numeric(16), item_numeric4_2 numeric(4,2), item_numeric8_4 numeric(8,4), item_numeric16_8 numeric(16,8), item_real binary_float, item_double_precision binary_double, item_money money, item_character_varying10 varchar(10), item_character_varying1000 varchar(1000), item_character10 char(10), item_character1000 char(1000), item_text test, item_bytea binary, item_date date, item_timestamp_wotz datetime, item_timestamp_wtz datetime with time zone, item_time_wotz time without time zone, item_time_wtz time with time zone, CONSTRAINT sampletbl_pkey PRIMARY KEY (item_smallint)
)