padawan_linuxero has asked for the wisdom of the Perl Monks concerning the following question:
my $dbhX1 = DBI->connect('dbi:XBase(RaiseError=1):'); my $select1 = $dbhX1->prepare("SELECT * FROM r501"); $select1->execute(); print "\nEjecutar SELECT de r501\n"; my $mysql_dbh1 = DBI->connect("DBI:mysql:database=$datafilename;ho +st=localhost", "root", "xyz123", {'RaiseError' => 1}); while ( (my @row) = $select1 -> fetchrow_array() ){ my $sthsql = $mysql_dbh1->prepare ("INSERT INTO r501 (reg, pat, pe +d, adnasec, impexp, cveped, adnaent, crupimp, rfcimp, curpaa, tc, fle +te, seguro, embal, oincrem, odeduc, pesob, transal, tranarr, travent, + destino, nomimp, calleimp, numimp, numext, cp, mcpio, entfed, paisim +p, archivo) VALUES ($row[0], $row[1], $row[ +2], $row[3], $row[4], $row[5], $row[6], $row[7], $row[8], $row[9], $r +ow[10], $row[11], $row[12], $row[13], $row[14], $row[15], $row[16], $ +row[17], $row[18], $row[19], $row[20], $row[21], $row[22], $row[23], +$row[24], $row[25], $row[26], $row[27], $row[28], $row[29], $row[30]" +) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with Insert
by thezip (Vicar) on Mar 13, 2008 at 23:33 UTC | |
|
Re: Need help with Insert
by ikegami (Patriarch) on Mar 13, 2008 at 23:33 UTC | |
|
Re: Need help with Insert
by driver8 (Scribe) on Mar 14, 2008 at 01:54 UTC | |
by Narveson (Chaplain) on Mar 14, 2008 at 04:34 UTC | |
by driver8 (Scribe) on Mar 14, 2008 at 11:35 UTC | |
|
(Re: Need help with Insert) How to insert a long row
by Narveson (Chaplain) on Mar 14, 2008 at 04:41 UTC |