I am trying to get data from a mysql quesry result, what I want to do is perform a mysql lookup for a certain row and then store all the columns in a hash, for example, I would search for id 3 and then store the data in the following form: $data{column1} $data{column2}
I know how to do them one by one in the form of $data{'field'} = $ref->{column1};
Is there a way to make it automatic though, without specifying each hash variable one by one?
Best Regards
John