文章轉自《http://blog.csdn.net/loongshawn/article/details/50496460》,感謝作者分享!
mybatis
jdbctype
oracle
mysql
array
bigint
binary
bit
blob
boolean
char
clob
cursor
date
decimal
double
number
float
integer
longvarbinary
longvarchar
long varchar
nchar
nclob
null
numeric
numeric/number
numeric/
nvarchar
other
real
smallint
struct
time
timestamp
tinyint
undefined
varbinary
varchar
注意到, mybatis的jdbctype中部分沒有對應到oracle和mysql的資料類型中(或許由于自己遺漏),不過不用擔心,後續大家碰到再具體分析;同時上述對應關系不一定是一一對應,請大家了解。
大家主要掌握基本的數字、時間、字元串就足以應對日常開發了。
<a target="_blank" href="http://www.mybatis.org/mybatis-3/apidocs/reference/org/apache/ibatis/type/jdbctype.html">mybatis jdbctype官方文檔</a>

查閱mybatis jdbctype官方文檔是很有必要的!