我尝试使用 Perl 语言与 Quickbase 交互,我使用以下查询将数据表导出到文本文件中,但我没有得到我想要的正确格式,有什么想法吗?或者如果有另一种语言更容易与 Quickbase 交互?
@records = $qdb->doQuery($dbid,"{0.CT.''}","6.7.8.9");
$record_count = @records;
foreach $record (@records) {
print MYFILE "|";
foreach $field (keys %$record){
if ($field eq "ColumnA") {
print MYFILE "\"";
print MYFILE " $field : $record->{$field}";
print MYFILE "\"";
}
if ($field eq "ColumnB") {
print MYFILE "\"";
print MYFILE "$field : $record->{$field}";
print MYFILE "\"";
}
if ($field eq "ColumnC") {
print MYFILE "\"";
print MYFILE "$field : $record->{$field}";
print MYFILE "\"";
}
if ($field eq "ColumnD") {
print MYFILE "\"";
print MYFILE "$field : $record->{$field}";
print MYFILE "\"";
}
}
print MYFILE "\n";
}
close LOGFILE;