Documentation

The Java™ Tutorials

Trail: JDBC Database AccessJDBC数据库访问

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.您还将学习如何执行事务以及如何捕获异常和警告。


Previous page: Beginning of Tutorial
Next page: JDBC Introduction