in reply to Re: how to save data to new array after retrieving from sql server
in thread how to save data to new array after retrieving from sql server

I love the way Pol builds data structure. Very clean and clear, and also like the bind column, I will try soon.Thanks heaps  code

Nirvana is Now or Never
  • Comment on Re^2: how to save data to new array after retrieving from sql server
  • Download Code

Replies are listed 'Best First'.
Re^3: how to save data to new array after retrieving from sql server
by thanos1983 (Parson) on Jul 28, 2017 at 08:06 UTC

    Hello again mhoang,

    No problems no worries, to be honest I also prefer using selectall_arrayref instead of bind_columns. But in cases that you are retrieving huge amount of data the only way to proceed is through bind_columns. Alternatively you will be utilizing huge amount of memory until all data have been processed and stored to the selectall_arrayref, when the other way you are just retrieving line by line the data. If in your case the retrieved data are not huge you should be fine.

    From the documentation bind_columns:

    # Column binding is the most efficient way to fetch data

    Hope this helps, BR.

    Seeking for Perl wisdom...on the process of learning...not there...yet!