rb_rb has asked for the wisdom of the Perl Monks concerning the following question:
What can be the reason? R.B.use warnings; use DBI; my($dbh, $sql, $res, @result, $kennz, $dbiServiceName); $dbiServiceName = "DBI:Oracle:prod"; $dbh = DBI->connect($dbiServiceName,"ibis01","ibis01"); if (defined($dbh)) { $sql = "select * from test"; $res = $dbh->prepare($sql); $res = $dbh->execute(); @result = $dbh->fetchrow_array(); $dbh->disconnect(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execute in DBI fails
by Joost (Canon) on May 19, 2005 at 14:49 UTC | |
|
Re: Execute in DBI fails
by the_0ne (Pilgrim) on May 19, 2005 at 18:11 UTC | |
|
Re: Execute in DBI fails
by holli (Abbot) on May 19, 2005 at 15:13 UTC |