Help for this page

Select Code to Download


  1. or download this
    sub _recreate_table {
       my $table_name = shift;
       drop_table($table_name) if table_exists($table_name);
       create_table($table_name, %schema); 
    }
    
  2. or download this
    $dbh->{RaiseError} = 1;
    eval { $sth->do("DROP TABLE $table_name") };
    if ($@) {
       ## Do nothing
    }