dtharby has asked for the wisdom of the Perl Monks concerning the following question:
$cth->prepare("SELECT COUNT(*) From Table1 Where....."); $cth->execute($Server1,$App1,$Inst1,); if (@rows == "0") { $sth->prepare("SELECT 1"); $sth->execute($Svr1,$ap1,$in); } else { $sth->prepare("SELECT 2") $sth->execute($svr1,$ap); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using If statement to set DBI prepare
by Fang (Pilgrim) on Jul 21, 2005 at 10:25 UTC | |
by dtharby (Acolyte) on Jul 21, 2005 at 10:32 UTC | |
by dtharby (Acolyte) on Jul 28, 2005 at 08:29 UTC | |
by Fang (Pilgrim) on Jul 28, 2005 at 13:47 UTC |