- 论坛徽章:
- 0
|
回复 #3 hr_it 的帖子
&get_ci_sz();
sub get_ci_sz{
my @ci_sz;
my $sql_sz="select count(*) a,c.ci from unicom:hb_cm_cell a ,unicom:ne_bsc b ,unicom:ne_cell c where a.type1=b.china_name and c.city_id=b.city_id and c.ci=a.ci and b.city_id='114' and c.n_confirm<>1 group by 2 having count(*)>1";
$sth=$dbh->prepare($sql_sz);
$sth->execute();
while(my @row=$sth->fetchrow_array){
@ci_sz=$row[1];
open(IN,">sz_ci.log" ||die "Can not write !";
foreach(@ci_sz){
print IN "$_\n";
}
close(IN);
}
}
}
这样也不行,more sz_ci.log.也是一行 |
|