JDBC Type —- Java Type
1. CHAR —- String
2.VARCHAR —- String
3.LONGVARCHAR —- String
4.NUMERIC —- java.math.BigDecimal
5.DECIMAL —- java.math.BigDecimal
6.BIT —- boolean
7.BOOLEAN —- boolean
8.TINYINT —- byte
9.SMALLINT —- short
10.INTEGER —- INTEGER
11. BIGINT —- long
12. REAL —- float
13. FLOAT —- double
14. DOUBLE —- double
15. BINARY —- byte[]
16. VARBINARY —- byte[]
17. LONGVARBINARY —- byte[]
18. DATE —- java.sql.Date
19. TIME —- java.sql.Time
20. TIMESTAMP —- java.sql.Timestamp
21. CLOB —- Clob
22. BLOB —- Blob
23. ARRAY —- Array
24. DISTINCT —- mapping of underlying type
25. STRUCT —- Struct
26. REF —- Ref
27. DATALINK —- java.net.URL[color=red][/color]
JdbcType类型和Java类型的对应关系
最新推荐文章于 2024-06-28 04:23:51 发布