1、 1 外 文 原 文 Almost all Java programs deal with data in some way. You have usedprimitive types, objects, arrays, linked lists, and other data structures upto this point. Today you work with data in a more sophisticated way by exploring JavaDatabase Connectivity (JDBC), a class library that connects Ja
2、va programsto relational databases. Java 6 includes Java DB, a small relational database thats part of theJava Development Kit, making it easier than ever to incorporate a databaseinto your applications. Today you explore JDBC and Extensible Markup Language (XML) in the following ways: 1. Using JDBC
3、 drivers to work with different relational databases 2.Accessing a database with Structured Query Language (SQL) 3. Reading records from a database using SQL and JDBC 4.Adding records to a database using SQL and JDBC 5.Creating a new Java DB database and reading its records Java Database Connectivit
4、y (JDBC) is a set of classes that can be used to develop client/server applications that work with databases developed by Microsoft, Sybase, Oracle, Informix, and other sources. With JDBC, you can use the same methods and classes in Java programs to read and write records and perform other kinds of
5、database access. A class called a driver acts as a bridge to the database sourcethere are drivers for each of the popular databases. Client/server software connects a user of information with a provider of that information,and its one of the most commonplace forms of programming. You use it every ti
6、me yousurf the Web: A web browser client requests pages, image files, and other documents using a uniform resource locator, or URL. Web servers provide the requested information,if it can be found, for the client. One of the biggest obstacles faced by database programmers is the wide variety of database formats in use, each with its own proprietary method of accessing data.To simplify using relational database programs, a standard language called SQL (Structured Query 2 Language) has been in