powerhouse has asked for the wisdom of the Perl Monks concerning the following question:
Is that how to do it?$sth = $dbh->prepare (qq{ SELECT * FROM table_name }); $sth->execute(); $row = $sth->fetchrow_hashref(); $sth->finish(); if ($sth) { #exists } else { # does NOT exist }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL Database Check...
by steves (Curate) on Jan 02, 2003 at 05:19 UTC | |
|
Re: MySQL Database Check...
by cchampion (Curate) on Jan 02, 2003 at 10:03 UTC | |
|
Re: MySQL Database Check...
by tachyon (Chancellor) on Jan 02, 2003 at 05:21 UTC | |
by steves (Curate) on Jan 02, 2003 at 05:29 UTC | |
by tachyon (Chancellor) on Jan 02, 2003 at 05:41 UTC | |
by powerhouse (Friar) on Jan 02, 2003 at 06:36 UTC | |
by vek (Prior) on Jan 02, 2003 at 13:20 UTC |