Free Programming

我的生活在一行又一行的代码中前行........

 

SQL的数据类型与Java数据类型的对应关系

SQL数据类型                 Java数据类型
CHAR                                      String
VARCHAR                              String
LONGVARCHAR                  String
NUMERIC                      java.math.BigDecimal
DECIMAL                      java.math.BigDecimal
BIT                                         boolean
TINYINT                                 byte
SMALLINT                            short
INTEGER                                 int
BIGINT                                   long
REAL                                      float
FLOAT                                  double
DOUBLE                               double
BINARY                                byte[]
VARBINARY                        byte[]
LONGVARBINARY             byte[]
DATE                                 java.sql.Date
TIME                                  java.sql.Time
TIMESTAMP                java.sql.Timestamp

posted on 2007-04-11 23:20  sharewind  阅读(951)  评论(0编辑  收藏  举报

导航