8 my $sth=$dbh->prepare("Select ordernumber,biblionumber from aqorders order by ordernumber");
12 while (my $data=$sth->fetchrow_hashref){
13 if ($data->{'ordernumber'} != $number){
15 my $query="update aqorders set ordernumber=$i where ordernumber=$data->{'ordernumber'} and biblionumber=$data->{'biblionumber'}";
16 my $sth2=$dbh->prepare($query);
19 $query="update aqorderbreakdown set ordernumber=$i where ordernumber=$data->{'ordernumber'}";
20 $sth2=$dbh->prepare($query);
25 $number=$data->{'ordernumber'};