I\'m using DBI to query a SQLite3 database. What I have works, but it doesn\'t return the columns in order. Example:
Query: select col1, col2, col3, col4 from
If you want to preserve the order, but still use a hash to refer to fields by name use:
$dbh->selectall_arrayref($sql,{ Slice => {} } );
This will give you an ordered array of hashes