Re: DBI prepare and fetch
- From: xhoster@xxxxxxxxx
- Date: 30 Aug 2005 23:10:18 GMT
soup_or_power@xxxxxxxxx wrote:
> Hi
> What does DBI's prepare do?
At a high level? It prepares your statement. At a low level?
Whatever DBD makes it do.
> Will it flag any errors?
That depends. In Oracle, it will flag some errors. In Mysql,
I don't think it will even do that.
> Also what does
> fetch do. I tried "perldoc DBI" but couldn't find the answers there.
Fetch is an alias for fetchrow_arrayref. As I just discovered, this fact
is surprisingly very poorly documented in DBI.
"fetchrow_arrayref"
$ary_ref = $sth->fetchrow_arrayref;
$ary_ref = $sth->fetch; # alias
That appears to be it. There should be an entry that says:
"fetch"
An alias for fetchrow_arrayref.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- Follow-Ups:
- Re: DBI prepare and fetch
- From: soup_or_power
- Re: DBI prepare and fetch
- References:
- DBI prepare and fetch
- From: soup_or_power
- DBI prepare and fetch
- Prev by Date: Re: Perl match problem
- Next by Date: Re: A program to measure flops in Perl (should it be this "off"?)
- Previous by thread: Re: DBI prepare and fetch
- Next by thread: Re: DBI prepare and fetch
- Index(es):
Relevant Pages
|