Java Tutorial - Java Script :
Accessing Databases with JDBC
Almost all Java programs deal with data in some way. You have used primitive types, objects, arrays, linked lists, and other data structures upto this point. Today you work with data in a more sophisticated way by exploring Java Database Connectivity (JDBC), a class library that connects Java programs to relational databases. Java 6 includes Java DB, a small relational database that’s part of the Java Development Kit, making it easier than ever to incorporate a database into your applications. Today you explore JDBC and Extensible Markup Language (XML) in the following ways:
· Using JDBC drivers to work with different relational databases
· Accessing a database with Structured Query Language (SQL)
· Reading records from a database using SQL and JDBC
· Adding records to a database using SQL and JDBC
· Creating a new Java DB database and reading its records
