in reply to selectrow_hashref upper/lower case
From DBI.pm:
"FetchHashKeyName" (string, inherited) This attribute is used to specify which attribute name the fetchrow_hashref() method should use to get the field names for the hash keys. For historical reasons it defaults to '"NAME"' but it is recommended to set it to '"NAME_lc"' or '"NAME_uc"' according to your ...
So something like this is probably what you want:
Also, if you implemented LIMIT in code, you could try rownum, eg:$dbh->{FetchHashKeyName} = 'NAME_lc';
select * from foo where rownum < 6;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: selectrow_hashref upper/lower case
by runrig (Abbot) on Oct 02, 2002 at 00:49 UTC | |
by valdez (Monsignor) on Oct 02, 2002 at 09:34 UTC |
In Section
Seekers of Perl Wisdom