Help for this page

Select Code to Download


  1. or download this
    my $ins_rec = "INSERT INTO $tbl_name (col1, col2, col3, col4, col5, co
    +l6, col7) VALUES (?,?,?,?,?,?,?);";
    
    ...
    $sth=$dbh->prepare($ins_rec) or die $dbh->errstr;
    
    $sth->execute($col1, $col2, $col3, $col4, $col5, $col6, $col7) or die 
    +$sth->errstr;
    
  2. or download this
    col7 ENUM('N','Y') NOT NULL DEFAULT 'N'
    
  3. or download this
    Global symbol "$col7" requires explicit package name at test.pl line 9
    +6.
    Execution of test.pl aborted due to compilation errors.