Ingres와 함께 제공되는 blobstor 반대 도구가 있다고 생각하지 않습니다. 지금은 해결책이 필요하기 전에 해결책이 짧은 프로그램을 작성해야했습니다.
예를 들어, 다음은 perl 스크립트입니다. 그것은 DBI와 DBD-IngresII 모듈을 사용합니다. 희망이있어.
# Required: db=, table=, col=. Optional: user=.
# Anything else is a where clause.
use DBI;
my %p=(); my $where="";
foreach my $arg (@ARGV)
{
if ($arg =~ /(db|table|col|user)=(\S+)$/) { $p{$1}=$2; next; }
$where .= " ".$arg if($p{db} and $p{table} and $p{col});
}
die "db, table and col required.\n" if(!$p{db} or !$p{table}
or !$p{col});
my $user=""; $user=$p{user} if defined($p{user});
my $dbh=DBI->connect("dbi:IngresII:".$p{db},$user,"");
my $stm="select ".$p{col}." from ".$p{table};
$stm.=" where".$where if ($where ne "");
my $sth=$dbh->prepare($stm);
$sth->execute;
@row=$sth->fetchrow_array;
print $row[0];
$sth->finish;
$dbh->disconnect;
G 존스,이 시도해 보겠습니다. –