RE: Resetting of the dataset
From: Brian Barto (brian.barto_at_spectrum-health.org)
Date: 12/16/04
- Next message: tim23456_at_web.de: "Re: combining getc() and unicode strings problem?"
- Previous message: Brian Barto: "RE: Resetting of the dataset"
- Maybe in reply to: Nicolay Vasiliev: "Resetting of the dataset"
- Next in thread: Nicolay A. Vasiliev: "Re: Resetting of the dataset"
- Reply: Nicolay A. Vasiliev: "Re: Resetting of the dataset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Thu, 16 Dec 2004 15:42:21 -0500
I just realized I was way off base from your original question. :) You want
to start over again from the beginning with fetchrow_array(). I think it's
just a matter of running the execute statement again to reset it...
-----Original Message-----
From: Nicolay Vasiliev [mailto:nvasiliev@whiteriversoft.com]
Sent: Thursday, December 16, 2004 10:14 AM
To: beginners@perl.org
Subject: Resetting of the dataset
Hello there!
I have some dataset got by the executing of some query. For example:
my $sth = $dbh->prepare('select * from sometable');
$sth->execute();
Going through this dataset by $sth->fetchrow_array() I need to go back
inside this proccess. Sorry, but I have no idea how can I do this. How
can I reset this dataset to move to the first record?
TIA.
-- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org <http://learn.perl.org/> <http://learn.perl.org/first-response>
- Next message: tim23456_at_web.de: "Re: combining getc() and unicode strings problem?"
- Previous message: Brian Barto: "RE: Resetting of the dataset"
- Maybe in reply to: Nicolay Vasiliev: "Resetting of the dataset"
- Next in thread: Nicolay A. Vasiliev: "Re: Resetting of the dataset"
- Reply: Nicolay A. Vasiliev: "Re: Resetting of the dataset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|