Selecting from dual always retrieves a single record. Caveat: I use Oracle. I'm not sure if dual is implemented on other database engines. --Akoyamy $sth = $dbh->prepare('SELECT * FROM dual'); my $rows = $sth->execute(); if ($rows != 1) { # try to reconnect }
In reply to Re: How to check the $dbh's status
by Akoya
in thread How to check the $dbh's status
by pysome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |