Marklitz has asked for the wisdom of the Perl Monks concerning the following question:
I want my output for Table2 as:Column1 Column2 12 13 14 15 16 18 133 122
I tried with my code as:Column 13 15 18 122
But still am not able to create another table. Please guide me.. Thanksmy $sth = $dbh->prepare("INSERT INTO Table1 values (?,?)"); my $newtable = $dbh->prepare("CREATE Table Table2 Column VARCHAR(12)") +; while(<ARGV>) { ..... .. $sth->execute($words[0],$words[2]) or die $DBI::errstr; $newtable ->execute("SELECT Column2 FROM Table1"); {print "$_";} } $sth->finish(); $newtable->finish(); $dbh->disconnect or warn $dbh->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Create another table
by tirwhan (Abbot) on Mar 05, 2009 at 12:01 UTC | |
|
Re: Create another table
by bellaire (Hermit) on Mar 05, 2009 at 12:00 UTC | |
|
Re: Create another table
by sanku (Beadle) on Mar 05, 2009 at 12:59 UTC |