Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $dbh = DBI->connect( "dbi:SQLite:$db" ) || warn "Cannot connect +: $DBI::errstr"; my $all = $dbh->selectall_arrayref( "SELECT * from table_X" ); if ( defined $all ) { # table exists } else { # table deosn't exist } $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQLite Table Existence?
by jau (Hermit) on Sep 17, 2010 at 15:03 UTC | |
|
Re: SQLite Table Existence?
by Anonymous Monk on Sep 17, 2010 at 23:54 UTC | |
by Anonymous Monk on Sep 18, 2010 at 00:00 UTC | |
by Your Mother (Archbishop) on Sep 18, 2010 at 01:29 UTC | |
by Anonymous Monk on Sep 18, 2010 at 00:11 UTC |