TAILIEUCHUNG - Hướng dẫn sử dụng MySQL part 13

Java là một trong những ngôn ngữ đơn giản mà bạn có thể viết các ứng dụng MySQL. truy cập cơ sở dữ liệu JDBC API của nó (Java kết nối cơ sở dữ liệu) là một trong những API truy cập cơ sở dữ liệu trưởng thành hơn độc lập cơ sở dữ liệu được sử dụng phổ biến. | DRAFT 8 24 01 14 Java Java is one of the simplest languages in which you can write MySQL applications. Its database access API JDBC Java DataBase Connectivity is one of the more mature database-independent database access APIs in common use. Most of what we cover in this chapter can be applied to Oracle Sybase MS SQL Server mSQL and any other database engine as well as MySQL. In fact nearly none of the MySQL-specific information in this chapter has anything to do with coding. Instead the proprietary information relates only to downloading MySQL support for JDBC and configuring the runtime environment. Everything else is largely independent of MySQL excepting for features not supported by MySQL like transactions. In this chapter we assume a basic understanding of the Java programming language and Java concepts. If you do not already have this background we strongly recommend taking a look at Learning Java O Reilly Associates Inc. . For more details on how to build the sort of three-tier database applications we discussed in Chapter 6 Database Applications take a look at Database Programming with JDBC and Java 2nd Edition O Reilly Associates Inc. . The JDBC API Like all Java APIs JDBC is a set of classes and interfaces that work together to support a specific set of functionality. In the case of JDBC this functionality is naturally database access. The classes and interfaces that make up the JDBC API are thus abstractions from concepts common to database access for any kind of database. A Connection for example is a Java interface representing a database connection. Similarly a ResultSet represents a result set of data returned from a SQL SELECT statement. Java puts the classes that form the JDBC API together in the package which Sun introduced in JDK . Copyright 2001 O Reilly Associates Inc. 159 DRAFT 8 24 01 The underlying details of database access naturally differ from vendor to vendor. JDBC does not actually deal with those details. Most of the .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.