baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:
it will do it if there is a Table X, but if there isn't one it checks in MySql, MySql returns error and my perl code stops(what i certainly don't want). how can i tell perl to check if that table exists and if exists than to drop it,or if it doesn't just to move on. thnx . Robertconnect to the db... $i = $dbh -> prepare(drop table X); $i -> execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI "drop table" next obstacle
by Corion (Patriarch) on Apr 13, 2008 at 17:39 UTC | |
|
Re: DBI "drop table" next obstacle
by jasonk (Parson) on Apr 13, 2008 at 17:47 UTC | |
|
Re: DBI "drop table" next obstacle
by ikegami (Patriarch) on Apr 13, 2008 at 17:45 UTC | |
|
Re: DBI "drop table" next obstacle
by moritz (Cardinal) on Apr 13, 2008 at 18:06 UTC |