Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^7: My doubts about using fetchall_arrayref

by CountOrlok (Friar)
on Apr 02, 2013 at 16:13 UTC ( #1026730=note: print w/replies, xml ) Need Help??

in reply to Re^6: My doubts about using fetchall_arrayref
in thread My doubts about using fetchall_arrayref

If you have a more advanced query like this one:
my $sql = "select id, account_number, CONVERT(VARCHAR(10),date,101) as + date from my_table where id <> '' order by date desc";
Then you can call the version of _all_data() that I gave above as either:
my @columns = qw( id account_number date ); my $results = $self->_all_data($sql, \@columns);
my $results = $self->_all_data($sql);
They will both get the same result set.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026730]
[muthusathish]: it is used in VB 6 appln, while debugging is getting error
[hippo]: Somebody has. Ask the author.
[Eily]: muthusathish ok, the fact that you can't tell what perl has to do with it proves it: this is not perl

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2018-02-23 09:20 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (301 votes). Check out past polls.