Appendix D: DBI Reference

This is a reference to the most common DBI methods. Again, we’ll cover them in enough detail to get you familiar with the basic concepts of each command. To get the latest documentation for the DBI module, please go to:


This method, more of a convenience, would not necessarily be used in a program. A call to available_drivers returns an array of the DBD drivers installed on the system.

The following code:

@drivers = DBI->available_drivers; print join("\n", @drivers), "\n";

yields something like this.

ExampleP CVS Proxy Mysql

This shows that we have four drivers installed. Using this method is a quick way to see what drivers are installed on a system.

Perl Database Programming
Perl Database Programming
ISBN: 0764549561
EAN: 2147483647
Year: 2001
Pages: 175

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: