类型名称 | 数据库类型 | JAVA类型 |
---|---|---|
Int,Integer [(M)] | Integer | java.lang.Integer |
Int,Integer [(M)] unsigned | Integer unsigned | java.lang.Long |
bigint [(M)] | bigint | java.lang.Long |
bigint [(M)] unsigned | bigint unsigned | java.math.BigInteger |
float [(M,D)] | float | java.lang.Float |
double [(M,B)] [unsigned] | double | java.lang.Double(不管是否带符号) |
decimal [(M,B)] [unsigned] | decimal | java.math.BigDecimal(不管是否带符号) |
char (M) | char | java.lang.String |
varchar (M) | varchar | java.lang.String |
tinyint (1) | tinyint | java.lang.Boolean |
tinyint (any) [unsigned] | tinyint [unsigned] | java.lang.Integer |
date | date | java.sql.Date |
datetime | datetime | java.time.LocalDateTime |
timestamp [(m)] | timestamp | java.sql.Timestamp |
time | time | java.sql.Time |
text | text | java.lang.String |
blob | blob | byte[] |
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/weixin_43296313/article/details/122841278
内容来源于网络,如有侵权,请联系作者删除!