Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
        last unless @$cols;
        print ++$count . ". @$cols\n";
    }
    
  2. or download this
    #!perl -w
    use strict;
    ...
    $dbh->{csv_tables}->{tbl2}->{file}='tmp2.csv';
    $dbh->{csv_tables}->{tbl3}->{file}='combined.csv';
    $dbh->do("CREATE TABLE tbl3 AS SELECT * FROM tbl1 NATURAL JOIN tbl2");