Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any help is appreciated. Thanks Steve$dbh = DBI->connect('dbi:ODBC:ReportDB') or die "Error opening DB: $DB +I::errstr\n"; $sth = $dbh->prepare("Select * FROM dbo_Bulletins Without Matching Kno +wnBulletins"); $sth->execute() or die "Couldn't execute query: $DBI::errstr\n"; $sth->finish(); my @results = (); while (@results = $sth->fetchrow_array) { ( $sth = $dbh->prepare("insert into knownbulletins(BulletinID,CVENu +mber,Title,DatePosted,DateRevised,Supported,Summary,Issue,ImpactSever +ityID,PreReqSeverityID,MitigationSeverityID,PopularityServerityID) values('$results[0]','$results[1]', '$results[2]','$results[3]',' +$results[4]','$results[5]','$results[6]','$results[7]','$results[8]', +$results[9],$results[10],$results[11],$results[12]); $sth->execute() or die "Couldn't execute query: $DBI::errstr\n"; $sth->finish();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help Copying records from one table to another.
by dws (Chancellor) on Jun 12, 2002 at 21:06 UTC | |
|
Re: Help Copying records from one table to another.
by vladb (Vicar) on Jun 12, 2002 at 21:09 UTC | |
|
Re: Help Copying records from one table to another.
by Abigail-II (Bishop) on Jun 13, 2002 at 10:19 UTC | |
|
(wil) Re: Help Copying records from one table to another.
by wil (Priest) on Jun 13, 2002 at 10:43 UTC |