Fujitsu Enterprise Postgresでは、様々なデータ型を使用することができます。
サポートするデータ型一覧
データ型 |
---|
boolean |
smallint |
integer |
bigint |
real |
double precision |
numeric |
money |
text |
character varying |
character |
national character varying |
national character |
citext |
json |
jsonb |
xml |
uuid |
bytea |
timestamp without time zone |
timestamp with time zone |
date |
time without time zone(注1) |
time with time zone(注1) |
interval(注2) |
cidr |
inet |
macaddr |
tsquery |
tsvector |
bit(1) |
bit(n) |
bit varying |
point |
lseg |
path |
polygon |
line |
circle |
box |
hstore |
oid |
xid |
cid |
oidvector |
name |
(internal) char |
geometry (PostGIS) |
record |
composite types |
range types |
multirange types (PG14) |
enum types |
array types |
注1) 以下の例のとおり、time with time zoneおよびtime without time zoneの値を表示すると、日付データが補填された形で表示されます。しかし、実データは時刻のみのデータで構成されるため、表示以外に注意すべきことはありません。
例:
【表(t1)の構成】
col1(time with time zone) | col2(time without time zone) |
---|---|
1/01/0001 10:21:30 +08:00 | 10:21:30 |
1/01/0001 23:34:03 +08:00 | 23:34:03 |
1/01/0001 17:23:54 +08:00 | 17:23:54 |
time with time zoneは日付データに固定値“2/01/0001”を表示し、time without time zoneは日付データのみを表示します。
SELECT * FROM t1; col1 | col2 ---------------------------+--------------------- 1/01/0001 10:21:30 +08:00 | 10:21:30 1/01/0001 23:34:03 +08:00 | 23:34:03 1/01/0001 17:23:54 +08:00 | 17:23:54
注2) 形式はd.hh:mm:ssで、dは整数、hh:mm:ssの最大値は23.59.59(23時59分59秒)です。