由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Perl/MySQL下fetchrow出错
相关主题
Help: a Perl script question, Thanks (转载)ask a C question about random number
when I run junit test, how can I log the java log to a file?随机数发生器问题请教
Anybody help me on these questions?delete this problem
问个很挠头的简单问题 (转载)如何实现 strtok() ?
继续吐槽scalahow to reverse a HUGE list?
Perl插入MySQL中双引号的问题swap every second node?
perl用DBI操作MySQL出错的问题thread safe or not???
Perl DBI比python的MySQLdb快吗?How to check if an object is null in python?
相关话题的讨论汇总
话题: fetchrow话题: mysql话题: dbh话题: dbi话题: null
进入Programming版参与讨论
1 (共1页)
L******r
发帖数: 199
1
怎么回事?
Can't call method "fetchrow_array" without a package or object reference at
test2.pl line 12.
#!/usr/bin/perl
use strict;
use DBI;
use FileHandle;
use Mysql;
my $dbh= DBI->connect("DBI:mysql:jXXX","XXX","XXX") || die "Got error";
my $tablename="GoogleDVD_Bi_2";
my @results;
#my $rows = $dbh->do(qq{select * from $tablename where (N1 is NULL)||(word_
0 is NULL)||(word_1 is NULL)});
my $rows = $dbh->do(qq{select * from $tablename where id=55});
while (@results = $rows->fetchrow_array()) {
1 (共1页)
进入Programming版参与讨论
相关主题
How to check if an object is null in python?继续吐槽scala
A weird segmentation fault!Perl插入MySQL中双引号的问题
C 多线程的一个问题perl用DBI操作MySQL出错的问题
How to implement "reverse a singly linked list" recursivelyPerl DBI比python的MySQLdb快吗?
Help: a Perl script question, Thanks (转载)ask a C question about random number
when I run junit test, how can I log the java log to a file?随机数发生器问题请教
Anybody help me on these questions?delete this problem
问个很挠头的简单问题 (转载)如何实现 strtok() ?
相关话题的讨论汇总
话题: fetchrow话题: mysql话题: dbh话题: dbi话题: null