gopakumar kiing wrote:
String str="insert into Nameage(Name,Age) Values(?,?)";
I think there might be some problem with your connestion string:
replace // with @ , / with : and try. I mean to say , it should look like below: (it might be one of the problems)
Coming to Query:
You are not using PreparedStatement.. then why did you use '?' in the place of value you wanted to insert?
one simple advise try to print the status of all JDBC coding.. like "driver loaded" , "connection established" and "query status".. so that you can trace yourself where the exception occurs
try with these and let me know the status.
Harshal Mekhale wrote:For accepting values from user use PreparedStatement and you need to set those values specifying the Parameter index and value pair for each.