I created a database named Test that included a table: Student (rollno, uid, pwd)
I want to add a new record through a java application. I've connected to database through driver 4 ok. but I can execute a procedure.
See what exactly i coded
And the code that have trouble
I don't know where it got wrong. But anyone can show me a suggestion.
I uploaded my whole project. I'd grateful if you would correct it for me.
I don't expect anybody is going to want to download your "project" (even if it does happen to be compatible with an IDE which they have) and install a database and configure tables and stored procedures and so on. It would be better if you did a little bit of investigation on your own. Let's start with the phrase "have trouble" which you used in your post. What does that mean? Are you unable to compile the code? Do you get exceptions when you run it? Or does it just do something different than what you expected? Read TellTheDetails for more information.