on 11-21-2013 10:48 AM
Hi,
I am facing one issue in connecting an application to database. In the code it is showing error like
ResultSet RST=sql1.executeQuery(querysele1);
Syntax Error on token "ResultSet", "finally" is expected.
Please help me out with this experts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
From your screenshot i can see the line just above the line where error is coming you have While statement which is commented.
You cannot have bracket without where clause.
Either un-comment While else remove bracket
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
here you can read more about the try-catch-finally block:
http://docs.oracle.com/javase/tutorial/essential/exceptions/try.html
I hope this helps.
Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you know java?
paste all the code here, then we can help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.