rb_rb has asked for the wisdom of the Perl Monks concerning the following question:
Hallo,
I want to get out a list of values out of my database. I tried out the method fetchrow_array and expected to receive an array. But I only got the first matching value, not all. What can be the mistake?
And this is the code:
Many thanks R.B.$sql = "select status from sh_protokoll where asek_jn = 'j'"; $sth = $dbh->prepare($sql); $res = $sth->execute(); @ary = $sth->fetchrow_array(); $res = $sth->finish();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: fetchrow_array
by marto (Cardinal) on May 27, 2005 at 10:55 UTC | |
Re: fetchrow_array
by monkey_boy (Priest) on May 27, 2005 at 11:09 UTC | |
Re: fetchrow_array
by bradcathey (Prior) on May 27, 2005 at 11:22 UTC | |
by kutsu (Priest) on May 27, 2005 at 14:21 UTC | |
by bradcathey (Prior) on May 27, 2005 at 16:02 UTC | |
by kutsu (Priest) on May 27, 2005 at 16:36 UTC | |
by injunjoel (Priest) on May 27, 2005 at 18:26 UTC |
Back to
Seekers of Perl Wisdom