in reply to DBI::CSV using a variable to request columns
select * from newCsv.csv WHERE gender ='male' AND genotype ='a'
As an aside: Please specify the column names instead of select *. Specifying column names protects against column additions, subtractions, and changes in column order. Furthermore, it is self-documenting. "select *" ought to be relegated to exists() and ad hoc queries.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI::CSV using a variable to request columns
by Sandy_Bio_Perl (Beadle) on May 20, 2016 at 14:42 UTC | |
|
Re^2: DBI::CSV using a variable to request columns
by LanX (Saint) on May 22, 2016 at 15:34 UTC | |
by chacham (Prior) on May 23, 2016 at 13:26 UTC | |
by LanX (Saint) on May 23, 2016 at 13:44 UTC | |
by chacham (Prior) on May 23, 2016 at 16:20 UTC |