Mybatis JdbcType and Oracle, MySql data type corresponding list

Please indicate the source for reprinting - author @loongshawn: http://blog.csdn.net/loongshawn/article/details/50496460

1. Mybatis JdbcType and Oracle, MySql data type corresponding list

Mybatis JdbcType Oracle MySql
JdbcType ARRAY    
JdbcType BIGINT   BIGINT
JdbcType BINARY    
JdbcType BIT   BIT
JdbcType BLOB BLOB BLOB
JdbcType BOOLEAN    
JdbcType CHAR CHAR CHAR
JdbcType CLOB CLOB CLOB–>Modify to TEXT
JdbcType CURSOR    
JdbcType DATE DATE DATE
JdbcType DECIMAL DECIMAL DECIMAL
JdbcType DOUBLE NUMBER DOUBLE
JdbcType FLOAT FLOAT FLOAT
JdbcType INTEGER INTEGER INTEGER
JdbcType LONGVARBINARY    
JdbcType LONGVARCHAR LONG VARCHAR  
JdbcType NCHAR NCHAR  
JdbcType NCLOB NCLOB  
JdbcType NULL    
JdbcType NUMERIC NUMERIC/NUMBER NUMERIC/
JdbcType NVARCHAR    
JdbcType OTHER    
JdbcType REAL REAL REAL
JdbcType SMALLINT SMALLINT SMALLINT
JdbcType STRUCT    
JdbcType TIME   TIME
JdbcType TIMESTAMP TIMESTAMP TIMESTAMP/DATETIME
JdbcType TINYINT   TINYINT
JdbcType UNDEFINED    
JdbcType VARBINARY    
JdbcType VARCHAR VARCHAR VARCHAR

Note that some of MyBatis's JdbcType does not correspond to the data types of Oracle and Mysql (perhaps due to omissions), but don't worry, we will analyze it later when you encounter it; at the same time, the above correspondence is not necessarily a one-to-one correspondence, please everyone To understanding.

It is enough for everyone to master basic numbers, time, and strings for daily development.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326079191&siteId=291194637