JDBC Type           Java Type  
CHAR                String  
VARCHAR             String  
LONGVARCHAR         String  
NUMERIC             java.math.BigDecimal  
DECIMAL             java.math.BigDecimal  
BIT                 boolean  
BOOLEAN             boolean  
TINYINT             byte  
SMALLINT            short  
INTEGER             INTEGER  
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  
CLOB                Clob  
BLOB                Blob  
ARRAY               Array  
DISTINCT            mapping of underlying type  
STRUCT              Struct  
REF                 Ref  
DATALINK            java.net.URL

-- mysql 
mysql 					java type
 date                 	java.sql.Date 
 Datetime          		java.sql.Timestamp 
 Timestamp       		java.sql.Timestamp 
 Time                 	java.sql.Time 
 Year                 	java.sql.Date 

 

最后修改于 2020-11-10 11:25:51
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付
上一篇