in reply to DBD::CSV - SQL Syntax - "AND" clause is not working properly
#!/usr/bin/perl -- use strict; use warnings; use Data::Dump; use DBI; use DBD::CSV; my $dbh = DBI->connect( "dbi:CSV:", undef, undef, { RaiseError => 1 }, ); my $sth = $dbh->prepare_cached(' select * from test.csv where OS=? and RELEASE=? LIMIT 8 '); $sth->execute( 'Fedora', 'Stentz' ); dd $sth->fetchall_arrayref; __END__ [["Fedora", "Stentz", 4]]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DBD::CSV - SQL Syntax - "AND" clause is not working properly
by slayedbylucifer (Scribe) on Aug 28, 2012 at 17:48 UTC | |
by marto (Cardinal) on Aug 28, 2012 at 21:16 UTC | |
by slayedbylucifer (Scribe) on Aug 29, 2012 at 06:07 UTC |
In Section
Seekers of Perl Wisdom