Using the Perl DBI module
Starting dates and places
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…
Frequently asked questions
There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.
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!
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.