in reply to Using DBI to extract from 2 databases
You don't need to explicitly "use DBD::mysql" - DBI will handle that for you.
To help with debugging, wrap all your "prepares" and "executes" with eval, like this:
eval { $sth = $self->dbh->prepare( $sql ); }; if ($@) { die "Database error (prepare): ", $self->dbh->errstr; } eval { $sth->execute(); }; if ($@) { die "Database error (execute): ", $self->dbh->errstr; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using DBI to extract from 2 databases
by Anonymous Monk on Apr 24, 2013 at 13:31 UTC | |
Re^2: Using DBI to extract from 2 databases
by scorpio17 (Canon) on Apr 24, 2013 at 20:57 UTC |
In Section
Seekers of Perl Wisdom