Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: fetchall( )

by pearlie (Sexton)
on Apr 21, 2005 at 10:45 UTC ( [id://449917]=note: print w/replies, xml ) Need Help??


in reply to fetchall( )

Hello, You need to store the data retrieved in an array of arrays, where each array in the bigger array represents a row. After retrieving each row, push it into the bigger array. Then you can use Data::Dumper module to display the data later.

Replies are listed 'Best First'.
Re^2: fetchall( )
by maarten_m4 (Initiate) on Apr 21, 2005 at 11:38 UTC
    I'm new to perl, so can you tell me how to do that? Or give me a few lines of sample code?
      The Data::Dumper module is a great way to see what your data structure is like. To print the entire array structure:
      use Data::Dumper; my $ref = $sth->fetchall_arrayref(); print Data::Dumper->Dump([$ref], ['*ref']);
      -albert

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://449917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found