Connection cn = DriverManager.getConnection(url,user,password);
Statement st = cn.createStatement();
ResultSet rs = st.executeQuery("select name from table");
如果我要判断 s 在不在rs中,应该怎么写呢?
...全文
323打赏收藏
这样的条件该怎么写?
String s; Connection cn = DriverManager.getConnection(url,user,password); Statement st = cn.createStatement(); ResultSet rs = st.executeQuery("select name from table"); 如果我要判断 s 在不在rs中,应该怎么写呢?