データベースメタ情報からインターフェースを作成したときの主な型の対応は以下の通り
項目の型 | 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 number(5,0) NOT NULL, item_integer number(10,0), item_bigint number(19,0), item_numeric4_0 number(4,0), item_numeric8_0 number(8,0), item_numeric16_0 number(16,0), item_numeric4_2 number(4,2), item_numeric8_4 number(8,4), item_numeric16_8 number(16,8), item_real binary_float, item_double_precision binary_double, item_character_varying10 varchar2(10), item_character_varying1000 varchar2(1000), item_character10 char(10), item_character1000 char(1000), item_text clob, item_bytea blob, item_date date, item_timestamp_wotz timestamp(6), item_timestamp_wtz timestamp(6) with time zone, CONSTRAINT sampletbl_pkey PRIMARY KEY (item_smallint) )