fetchall_hashref

fetchall_hashref

am 09.07.2004 17:08:02 von Mayuran

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@m .gmane.org