fetchall_hashref

Im wondering if its possible to use more than 1 key
for $key_field. For example:

$sth = $dbh->prepare ("SELECT foo, bar, id1, id2 FROM table");
$sth->execute;

Would it be possible to generate a hashref that has id1 and id2
as keys? It should look like this :
$hashref = {
'id1' => {
'id2' => {
'foo' => '',
'bar' => ''
}
}
};

thanks,
Mayuran.

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules [at] m .gmane.org
Mayuran [ Fr, 09 Juli 2004 17:08 ] [ ID #180739 ]
Datenbanken » gmane.comp.db.mysql.perl » fetchall_hashref

Vorheriges Thema: Secure Database Systems
Nächstes Thema: fetchall_hashref