|Welcome to the Monastery|
Help with MySQL SELECT into multidimensional arrayby btongeorge (Initiate)
|on Dec 01, 2011 at 22:29 UTC||Need Help??|
btongeorge has asked for the
wisdom of the Perl Monks concerning the following question:
I'm hoping you can help advise me on my most recent Perl/MySQL related query. I seek enlightenment...
I need to extract some data from a MySQL DB and process it in Perl. The data relates to client accounts, I will run a series of queries that will extract data relating to these accounts. What I want to be able to do is run a first query to populate an array with the list of clients, then run subsequent queries to create additional columns. The secondary queries will only generate values for some clients, so the array should have zero values in the array elements that haven't been populated.
I have written my SQL and from the many posts that I have read, I need to use DBI or DBIx::Simple to get the data into the array. Beyond that, I am in the dark.
Would appreciate any pointers that the wise monks could give me, I am in need of wisdom.
Thanks in advance Brother George