Help for this page

Select Code to Download


  1. or download this
    use Carp;
    $SIG{__DIE__} = \&Carp::confess;
    
  2. or download this
          my $sth = $dbh->prepare("SELECT 1 FROM $table_name") or die DBI-
    +>errstr;
    
  3. or download this
    use common::sense;
    use SQL::Statement;
    ...
        warn "trying: $_";
        my $stmt = SQL::Statement->new($_,$parser);
    }
    
  4. or download this
    trying: SELECT 1+0 FROM some_table at sql.pl line 10.
    trying: SELECT 1 FROM some_table at sql.pl line 10.
    Bad table or column name: '1' starts with non-alphabetic character! at
    + /usr/local/share/perl/5.10.0/SQL/Parser.pm line 2894.