Preface

The DBI is the standard database interface for the Perl developing language. The DBI is database-independent, which means that it can work with just about any database, such as Oracle, Sybase, Informix, Access, MySQL, etc.

While we assume that readers of this tutorial have some experience with Perl, we don't assume much familiarity with databases themselves. The tutorial starts out slowly, describing different types of databases and introducing the reader to common terminology.

This tutorial is not solely about the DBI -- it also concerns the more general subject of storing data in and retrieving data from databases of various forms. As such, this tutorial is split into two related, but standalone, parts. The first part covers techniques for storing and retrieving data without the DBI, and the second, much larger part, covers the use of the DBI and related technologies.

Throughout the tutorial, we assume that you have a basic grounding in developing with Perl and can put together simple scripts without instruction. If you don't have this level of Perl awareness, we suggest that you read some of the Perl tutorials listed in "Resources ".

Once you're ready to read this tutorial, there are some shortcuts that you can take depending on what you're most interested in reading about. If you are interested solely in the DBI, you can skip "Basic Non-DBI Databases " without too much of a problem. On the other hand, if you're a wizard with SQL, then you should probably skip "SQL and Relational Databases " to avoid the pain of us glossing over many fine details. "ODBC and the DBI " is a comparison between the DBI and ODBC and is mainly of interest to database geeks, design aficionados, and those people who have Win32::ODBC applications and are desperately trying to port them to DBI.

Here's a rundown of the tutorial, chapter by chapter:

Resources

To help you navigate some of the topics in this tutorial, here are some resources that you might want to check out before, during, and after reading this tutorial: