Help for this page

Select Code to Download


  1. or download this
    use DBI;
    
    ...
    my $sth = $dbhX->prepare("SELECT * FROM reg501");
    $sth->execute();
    $dbhA->do("CREATE TABLE etstx AS SELECT * FROM ?",{}, $sth);
    
  2. or download this
    SQL ERROR: Bad table or column name '?' has chars not alphanumeric or 
    +underscore!
    
    ...
    
    Can't call method "execute" on an undefined value at C:/Perl/site/lib/
    +SQL/Statement.pm line 254.
     [for Statement "SELECT * FROM ?"] at testdbf.pl line 8.