JDBC Program - Smart Tech Guides

Latest

Hi this is Sravan Kumar from India. SMART TECH GUIDES is a technical blog. it helps you to learn about Java topics, frameworks and tools like Jenkins, GitHub & related explanations, data base related topics. All these Explanations are explained in simple and understandable manner.

Subscribe Us

SMART TECH GUIDES

JDBC Program

JDBC Program 


How to Connect to Oracle Database in Java Program? 


1) create new Java project file

2) select created Java project and add JDBC driver, from external jar location.

this external jar location available inside configure build path.









after adding jar file(ojdbc6) downloaded from internet almost our  setup is ready. now we can communicate with Database(oracle).   




3) write Java code inside src Java file 



Create table and insert records into table




 

4) Run Java application and see result on the console because we are using system.out.print() method.

Results will be fetching from database.

 

No comments:

Post a Comment