最好取的时候用getString()方法.取出来以后判断,再转化成java中的long.
String contents = rs.getString(1);
long lContents;
if(contents != null){
lContents = Long.parseLong(contents );
}
String contents = rs.getString(1);
long lContents;
if(contents != null){
lContents = Long.parseLong(contents );
}
解决方案 »
- 我的eclipse装的是eclipse-jee-helios-SR2-win32,我装什么版本myeclipse
- 求教,如何利用runtime.exec()执行多条DOS命令行??
- 小弟跪求!事务不回滚问题。在线急等。
- 帮我看看这个动画程序!!
- url.openstream在websphere 下获得为空的问题:
- hibernate问题
- hibernate 连接查询能查出来吗
- 被Deprecated的方法HttpUtils.getRequestURL(request)可以用什么方法来替代呢?
- 已经解决的问题,但不知道为什么,高手过来看看啊
- Java写的Webservice,PHP,ASP怎么调用?
- 急! 请问有谁开发过用J2EE结合无线网条型码的仓库管理系统吗
- 十里开源最新决策『十里开源__http://www.opensource.com.cn』
getString()再检查..
getInt()也可以呀...