Re: fetchhash question

2001-06-07 Thread Chas Owens
In DBI, it (fetchrow_hashref, not fetchhash) returns a hash where the keys = column names and values = value of the columns on the row. I consider it a generaly bad thing since it forces you to alias your columns when you have two (or more) columns with the same name or an expersion as a column i

Re: fetchhash question

2001-06-07 Thread John Joseph Trammell
On Thu, Jun 07, 2001 at 04:34:48PM -0400, Bradshaw, Brian wrote: > You guys have been so nice.. I have another question :) > > What does fetchhash do? > > I have the code : > $return_hash = $dbh->query($query) or print "$query\n\n"; > %result = $return_hash->fetchhash(); > But I am u

fetchhash question

2001-06-07 Thread Bradshaw, Brian
You guys have been so nice.. I have another question :) What does fetchhash do? I have the code : $return_hash = $dbh->query($query) or print "$query\n\n"; %result = $return_hash->fetchhash(); But I am unsore of what the fetchhash does. Thanks again! Brian Bradshaw Systems Engi