Hi everyone,
Is there a way to run a query with DBI that is like this;-
Then what i want to do is refer to the results like this ;-
However this query will return about 100 columns per row, each is required but there are too many to map to variable names, i need to bind the column results to the the DB column names which may not be known to the perl query.
I have looked at lots of DBI stuff on the web, but at some point you always seem to have to define the name of the vars to attach the results to.
Thanks.
Is there a way to run a query with DBI that is like this;-
Code:
SELECT * FROM table;
Then what i want to do is refer to the results like this ;-
Code:
$data['product']
However this query will return about 100 columns per row, each is required but there are too many to map to variable names, i need to bind the column results to the the DB column names which may not be known to the perl query.
I have looked at lots of DBI stuff on the web, but at some point you always seem to have to define the name of the vars to attach the results to.
Thanks.