PostgreSQL与Java类型的对照

PostgreSQL™                         Java SE 8

date                          LocalDate

time                          LocalTime

timestamp  without timezone       LocalDateTime

timestamp with timezone            OffsetDateTime

varchar                     String 

text                           String 

int2                           Integer

int4                           Integer

int8                           Long

float4                        Float

float8                        Double

numeric                    BigDecimal

bool                          Boolean

posted @ 2023-08-18 18:04  huigui_mint  阅读(1108)  评论(0编辑  收藏  举报