Connection connection=DriverManager.getConnection(url,"sql_973","datashare");要放到try catch块里,因为可能会抛出ClassNotFoundExceptionrs=statement1.executeQuery(sql);也要放到try catch块里,因为可能会抛出SQLException
解决方案 »
- JWindow 点击其他地方 窗口自动消失
- JAVA多线程编程中的一个问题
- 新浪微博面试题,求高手解答!
- 请大家帮帮忙,编写一个小型的考试练习系统
- SWT的TABITEM的宽度怎么调?设置IMAGE后总是比IMAGE宽
- mysql数据库连接 想用JCreator写 结果出了老错误 不管怎么配置都不行哦
- java程序员很累吗?
- 跪求!JAVA里的 天花板 函数是什么怎么用呀!!比如3.9=3???
- socket通讯我如何才能正确接受来自c++的字符串??在线等待,立即送分!
- jb7安装好了,有谁知道serial number和key啊,高分
- 请问哪可下载<<JAVA2编程起步>>
- ias6.5中应如何配置sybase的database?
String sql="select * from se590_brdf where ob_date = \'" + ob_date + "\' and field_no = \'" + position + "\' and rtrim(ltrim(objection)) = \'冬小麦\' and " + sql_dire; //sql_dire是什么?
String sql2 = "select * from 土面反射率_BRDF where ob_date = \'" + ob_date + "\' and field_no = \'" + position+ "\' and ltrim(rtrim(beijing_time)) = \'" + bj_time + "\'";也就是说,在单引号'的前面都加上\
for (j=0;j<252;j++)
{
ref[0][j]=rs.getFloat(j+10) ; /********* 它可能会出错越届*******/
}
回答相关者给分