my $sql = "SELECT * FROM test"; my $sth = $dbh->prepare($sql) || die "Couldn't prepare $sql: $sth->errstr"; while ( @row = $sth->fetchrow_array ) { print "@row\n"; } #### dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute probably not set right at ./test_sqlite.pl line 12.