Posts

The Best and Single JDBC example which includes getting input from user and storing it into database right from eclipse. I hope it almost solves all of your doubts ...

Image
A Full JDBC example problem which takes some input from user and saves that into database from eclipse This post is gonna say you how to take input from user just using Scanner and save that into database directly with proper comments. It is advised to learn core Java before coming to JDBC directly. I would suggest you to go through very basics of JDBC like what is JDBC and its usage as I m not gonna include that theoretical basics here... First of all I have tried to make you understand everything piece by piece like how to connect to database and how to use resultset and createstatement methods. Don't worry even if you don't understand it at the beginning I have tried my level best to make you understand everything at the end  How to connect to SQL database (here is the code); The below mentioned way is simple which is done by using class.forname method, here you can remove try catch if you don't need it  The green highlighted words are credentials which will change syst