如题:
db.default.url="jdbc:mysql://localhost:3306/kissbb_data?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull&tinyInt1isBit=false"
| MySQL Type Name |
Return value ofGetColumnClassName | Returned as Java Class |
|---|---|---|
BIT(1) (new in MySQL-5.0) |
BIT |
java.lang.Boolean |
BIT( > 1) (new in MySQL-5.0) |
BIT |
byte[] |
TINYINT |
TINYINT |
java.lang.Boolean if the
configuration property tinyInt1isBit is
set to true (the default)
and the storage size is 1, orjava.lang.Integer if
not. |
理解MySQL BIT类型与返回值
本文详细解析了MySQL中BIT类型及其返回值的用法,包括BIT(1)与BIT(>1)的区别,以及当tinyInt1isBit设置为true时TINYINT的返回值类型。
267

被折叠的 条评论
为什么被折叠?



