The Java Tutorials have been written for JDK 8.Java教程是为JDK 8编写的。Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.本页中描述的示例和实践没有利用后续版本中引入的改进,并且可能使用不再可用的技术。See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.有关Java SE 9及其后续版本中更新的语言特性的摘要,请参阅Java语言更改。
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.有关所有JDK版本的新功能、增强功能以及已删除或不推荐的选项的信息,请参阅JDK发行说明。
The JDBC API was designed to keep simple things simple.JDBCAPI旨在使简单的事情保持简单。This means that the JDBC makes everyday database tasks easy.这意味着JDBC使日常数据库任务变得简单。This trail walks you through examples of using JDBC to execute common SQL statements, and perform other objectives common to database applications.本教程将带您了解使用JDBC执行常见SQL语句和执行数据库应用程序常见的其他目标的示例。
This trail is divided into these lessons:本课程分为以下几节:
➤ JDBC IntroductionJDBC简介 Lists JDBC features, describes JDBC Architecture and reviews SQL commands and Relational Database concepts.列出JDBC特性,描述JDBC体系结构,并回顾SQL命令和关系数据库概念。
➤ JDBC BasicsJDBC基础 covers the JDBC API.介绍JDBC API。
By the end of the first lesson, you will know how to use the basic JDBC API to create tables, insert values into them, query the tables, retrieve the results of the queries, and update the tables.在第一课结束时,您将了解如何使用基本JDBCAPI创建表、向表中插入值、查询表、检索查询结果以及更新表。In this process, you will learn how to use simple statements and prepared statements, and you will see an example of a stored procedure.在这个过程中,您将学习如何使用简单语句和准备好的语句,并将看到一个存储过程的示例。You will also learn how to perform transactions and how to catch exceptions and warnings.您还将学习如何执行事务以及如何捕获异常和警告。