On Mon, Nov 25, 2002 at 04:21:57PM +0100, NYIMI Jose (BMB) wrote: > Hello, > > As far as I know, fetchrow_hashref() return a hashref > with colum_name as keys. > My question is: > Is there a way to say to fetchrow_hashref() to return a hashref > where keys will contain both table_name and colum_name ?
No, not in the DBI spec itself. > I need my sql to be something like > $sql=" select > table1.*, > table2.col2 > from > table1, > table2 > where tabe1.id=table2.id"; > > And the fetchrow_hashref should concantenate(separated by dot or something else) > table_name and column_name as key of its returned href. If the database api makes the information available then the driver could support an attribute to add it to the field names. Tim.
