cannot be resolved to a variable翻译(cannot be resolved)
来源:互联网    时间:2023-08-05 21:17:05


(资料图)

1、嗯。

2、这个问题很有深度,经过我代码粘贴和MyEclipse测试,终于知道什么问题了。

3、主要是ResultSet rs=***.executequery("select * from cc");中sql没有定义,因为sql在try,catch范围内,需要把这条与句改为: try{ Connection con=***.getconnection("jdbc:odbc:ee"); Statement sql=***.createstatement(); ResultSet rs=***.executequery("select * from cc");} catch(SQLException e){ }。

本文分享完毕,希望对大家有所帮助。

X 关闭

推荐内容

精彩推荐

Copyright ©  2015-2022 东亚卫浴网版权所有  备案号:琼ICP备2022009675号-13   联系邮箱:435 227 67 @qq.com