java数据典型对应postgresql的数据典型

java数据典型对应postgresql的数据典型

java8

postgreSQL

LocalDate

date

LocalTime

time

LocalDateTime

timestamp without timezone

OffsetDateTime

timestamp with timezone

String

varchar

String

text

Integer

int2

Integer

int4

Long

int8

Float

float4

Double

float8

BigDecimal

numeric

Boolean

bool

分享到 :

Leave a Reply

Your email address will not be published. Required fields are marked *