- 论坛徽章:
- 0
|
代码如下,错误是
DBD::Informix::db prepare failed: SQL: -201: A syntax error has occurred. at ./code4 line 8.
Can't call method "execute" on an undefined value at ./code4 line 9.
希望高手帮忙,谢了!- #!/bin/perl
- push @INC , "/usr/local/lib/perl5/site_perl/5.8.3/aix-thread-multi" ;
- require DBI;
- #$DSN = "DBI:"
- require DBD::Informix ;
- $dbh = DBI->connect("DBI:Informix:faint\@cxcs") or die "Database unavaliable;";
- my $tmp = "unload to txt select * from orders;" ;
- my $uload = $dbh->prepare($tmp);
- $uload->execute();
- $dbh->disconnect();
复制代码 |
|