-=记录我与java的点滴=-

友情博客

搜索

最新评论

RSS

我的 Blog:
walking 最新的 20 条日志
[工]
[忆]
[品]
[曲]
全站 Blog:
全站最新的 20 条日志

#!/usr/bin/perl
use strict;
use DBI;
open(PH,">ips");
my $dbh=DBI->connect ("DBI:mysql:test:127.0.0.1:7096","root","pass") or die "can not connect to the database $DBI::errstr"; #test is the table,127.0.0.1 is the host and the port 7096.
my @data;
my $tmp;
my $sth=$dbh->prepare("select * from misc_gateways where ips<>?");
$sth->execute("") or die "Error".$sth->errstr;
while(@data=$sth->fetchrow_array()){
print PH $tmp."'";
}
print "\n";
print PH."\n";
$dbh->disconnect();
close(PH);

作者:Rick 发表时间:2004-11-12  [所属栏目:] | [返回首页]

评论(共 条) 我要评论
{CommentTime} | {CommentAuthor} {CommentUrl}
{CommentContent}