(Fwd) DBI's method for reading [row x,field y]
- From: Tim.Bunce@xxxxxxxxx (Tim Bunce)
- Date: Tue, 27 Feb 2007 19:27:05 +0000
----- Forwarded message from Bob Hunter <catdogbeloved@xxxxxxxxx> -----
Date: Tue, 27 Feb 2007 08:03:19 -0800 (PST)
From: Bob Hunter <catdogbeloved@xxxxxxxxx>
Subject: DBI's method for reading [row x,field y]
To: Tim Bunce <Tim.Bunce@xxxxxxxxx>
X-Pobox-Pass: catdogbeloved@xxxxxxxxx is whitelisted
Tim,
I am porting an application from Pg to DBI, and make
extensive use of the following method:
Returns the value of the given record and field
number:
$sth->getvalue($rn,$fn)
In particular, I use expressions like
$sth->getvalue($rn+$i,$fn-$j)
where the the number of record/field are displaced by
variables. As far as I can see from your book, DBI has
a method to work one row at the time, in sequence.
This is way too simple to handle the case above. I
looked for a more powerful DBI method, but it does not
seem to exist. Is it so? Please give me an insider's
view of this problem. Does DBI have an equivalent to
Pg' method "getvalue"? If not, can you please copy it
from Pg's module, and make it available in DBI?
Regards,
Bob
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
----- End forwarded message -----
.
- Follow-Ups:
- Re: (Fwd) DBI's method for reading [row x,field y]
- From: Martin J. Evans
- Re: (Fwd) DBI's method for reading [row x,field y]
- From: Bob Hunter
- RE: (Fwd) DBI's method for reading [row x,field y]
- From: Philip Garrett
- Re: (Fwd) DBI's method for reading [row x,field y]
- From: Bob
- Re: (Fwd) DBI's method for reading [row x,field y]
- Prev by Date: Re: Any DBI equivalent for Pg's method "print"?
- Next by Date: Re: (Fwd) DBI's method for reading [row x,field y]
- Previous by thread: Any DBI equivalent for Pg's method "print"?
- Next by thread: Re: (Fwd) DBI's method for reading [row x,field y]
- Index(es):