in reply to Re^3: My doubts about using fetchall_arrayref
in thread My doubts about using fetchall_arrayref
To this:... my $sql = "select id, account_number, CONVERT(VARCHAR(10),date,101) a +s date from my_table where id <>'' order by date desc"; my @columns = qw( id account_number box ); my $results = $self->_all_data($sql, \@columns); ...
... my @columns = qw( id account_number date ); my $sql = "select ".join( ",", @columns). " from my_table where id <>'' order by date desc"; my $results = $self->_all_data($sql, \@columns); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: My doubts about using fetchall_arrayref
by hdb (Monsignor) on Apr 02, 2013 at 15:13 UTC | |
by Anonymous Monk on Apr 02, 2013 at 15:44 UTC | |
by CountOrlok (Friar) on Apr 02, 2013 at 16:13 UTC |