smallint 在sql表中有一字(job_id)段数据类型为smallint.因为要与数据库连接,在jsp中 要输出该字段job_id,但这样写会出错out.print(rs.getInt("job_id")) ;,谁知道smallint怎么转换成int, 能不出错! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 getShort(String columnName) The recommended Java mapping for the JDBC TINYINT type is as either a Java byte or a Java short. 意思是说 推荐byte或者 short 你先取出来 然后强制造型即可。 晕 上面写错的 The recommended Java mapping for the JDBC SMALLINT type is as a Java short. 这句是smallint的 推荐 类型 ,显然是short 但这样写会出错out.print(rs.getInt("job_id")) ;,不可能哦! 把你的错误贴出来! 呵呵!! struts2 404报错 请各位大侠帮帮忙吧 指点“思路”,激扬文字 关于jsp中getParameter的问题 在java中如何用线程实现调度 JSP文件上传问题 cookie 在liunx下不能读取的问题 tomcat远程访问 求助关于@hibernate 多对多的用法 高分求JSP+SQLSERVER的电子书。在线等 怎样得到字符串的长度,怎样取得字符串中的字符? iText生成的pdf的问题 求助:Tomcat5.5连接Oracle10g问题
The recommended Java mapping for the JDBC SMALLINT type is as a Java short.
这句是smallint的 推荐 类型 ,显然是short
不可能哦! 把你的错误贴出来! 呵呵!!