Using the Perl DBI module

Level
Total time

Using the Perl DBI module

Perpetual Solutions
Logo Perpetual Solutions
Provider rating: starstarstarstarstar 10 Perpetual Solutions has an average rating of 10 (out of 1 reviews)

Need more information? Get more details on the site of the provider.

Starting dates and places

There are no known starting dates for this product.

Description

Prerequisites:

Experienced Perl 5 developers and support staff who wish to use and support Perl interfaces with database systems.

Delegates must have recent experience of Perl, and some knowledge of SQL.

Course Description:

The popular Perl programming language is incredibly versatile. One of its niche uses is in interfacing with databases. Interfaces are available for all the popular Relational Database Management Systems, like Oracle, Sybase, DB2, SQL Server, MySQL, and so on. These are controlled through a common Perl interface, the DBI module. This course shows how to use the module effectively from Perl.

The course uses Linux with MySQL for practical exercises, but is applicable to other ope…

Read the complete description

Frequently asked questions

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.

Didn't find what you were looking for? See also: Perl, Database Management, Programming (general), Linux, and Web Accessibility.

Prerequisites:

Experienced Perl 5 developers and support staff who wish to use and support Perl interfaces with database systems.

Delegates must have recent experience of Perl, and some knowledge of SQL.

Course Description:

The popular Perl programming language is incredibly versatile. One of its niche uses is in interfacing with databases. Interfaces are available for all the popular Relational Database Management Systems, like Oracle, Sybase, DB2, SQL Server, MySQL, and so on. These are controlled through a common Perl interface, the DBI module. This course shows how to use the module effectively from Perl.

The course uses Linux with MySQL for practical exercises, but is applicable to other operating systems and databases.

Course Objectives

On completing this course, you will be able to:

- Use non-DBI databases
- Create databases and tables using Perl DBI
- Use SQL statements effectively from Perl
- Understand and use the different techniques for fetching data
- Write dynamic SQL queries and updates
- Handle errors and perform diagnostics
- Use the DBI Shell

This course includes the following modules:

Perl Reminder

  • Perl documentation
  • Perl variables
  • Context
  • References
  • Subroutines
  • Modules
  • Perl OO

Perl and databases

  • Introduction
  • DBI and DBD
  • Drivers and data source names
  • The DBI shell
  • A test database
  • dbi:DBM: and dbish

Using database handles

  • Database handles
  • Connect and disconnect
  • Attributes for connect
  • Manual error checking
  • Atomic fetching
  • Batch fetching
  • Statement shortcut - do
  • Other database handle methods
  • Pitfalls

Using statement handles

  • Life cycle of a statement
  • Fetching rows
  • Retrieving result sets
  • Fetching metadata
  • Calling a stored procedure
  • Other statement handle methods

Placeholders

  • Placeholder syntax
  • Repeated statement execution
  • Dynamic SQL
  • Bulk substitution
  • Placeholders with $dbh->do
  • Data typing with bindparam
  • Binding output to variables

Transactions

  • Principles of transaction handling
  • Database capabilities
  • Manual transaction control
  • Error handling

For online live training advice please visit our Learning Advice Centre on our website. Be sure to follow us on Twitter to receive special course offers, news and updates!

There are no reviews yet.

Share your review

Do you have experience with this course? Submit your review and help other people make the right choice. As a thank you for your effort we will donate £1.- to Stichting Edukans.

There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.