Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Tutorial : Connect to a SQL database with JDBC

Share this post!
 Vote this!

If you're interested in connecting your Java applications to standard SQL databases like Oracle, MySQL, SQL Server, and others, the Java JDBC technology is exactly what you need. The combination of Java JDBC and standard SQL queries creates a simple and powerful database solution. JDBC makes the simple things easy -- without making the complex tasks too difficult either.
In this first article in our JDBC tutorial series, we'll show you step-by-step how to establish a database connection from your Java programs to an SQL database using JDBC (i.e., a "JDBC connection"). In the process we'll show you how to connect to two different databases -- Mini SQL (mSQL), and Interbase -- just so you can see how the code changes when you switch from one database to another. (The databases you connect to don't matter much -- that's one of the beauties of JDBC. Once you're connected to the database with JDBC, most databases act the same.)  more...

0 comments:

Post a Comment