April 2008
Intermediate to advanced
566 pages
21h 55m
English
disconnect()
$dbh->disconnect()This function disconnects a Perl program from a database; it
ends a MySQL session. There are no arguments for this function.
Depending on your system, it may or may not commit or roll back any
open transactions started by the database handle. To be sure,
intentionally commit or roll back open transactions before
disconnecting. Also, be sure to close any open statement handles by
executing finish() for each statement handle
before disconnecting, like so:
$sth->finish(); $dbh->disconnect();
Read now
Unlock full access