- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I want to shift the value in columns after comparision. I am having problem with the getString command. It results in an error ….my code is like this [code]for(p=1;p<20;p++) { Class.forName("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/srch","root",""); Statement stmt2=con.createStatement(); ResultSet rs2=stmt2.executeQuery("select * from "+tbl+"c"+startc+" where keyword='"+sk[i]+"'"); cnt=0; if(rs1.findColumn("count"+p) > 0) { System.out.println("count"+p); cnt=rs2.getInt("count"+p); if(cnt … |
|
hi... i m beginner...and i m having trouble with following code:and the problem is that when i try to input name then it is taking blank...like... i m first asked value of n if i enter 2 then it automaticaly goes to acc type .....not taking name... import java.util.Scanner; class … |