int[(m)] |
有符号值:-2147683648 到2147683647(- 231 到231- 1) 无符号值:0到4294967295(0 到232 - 1) |
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id'
`uid` int(11) unsigned NOT NULL COMMENT '用户id'
`uid` int(10) unsigned NOT NULL COMMENT '用户id'
/** * Get attribute of mysql type: int, integer, tinyint(n) n > 1, smallint, mediumint */ public Integer getInt(String attr) { return (Integer)attrs.get(attr); } /** * Get attribute of mysql type: bigint, unsign int */ public Long getLong(String attr) { return (Long)attrs.get(attr); }
System.out.println("2147683647"); System.out.println("4294967295"); System.out.println(Integer.MAX_VALUE);//2147483647
原文地址:http://blog.csdn.net/qing_gee/article/details/45503859