in reply to Help with DBD::CSV
'col_names' => "id,value"
*or* in your data file like this:
id;value 1;foo 2;barBUT DON'T SPECIFY BOTH! And, IIRC, both "key" and "value" are SQL reserved words so for portability, avoid them as column names.
SELECT * FROM table WHERE value = (SELECT * ...That is called a subselect and it is available in some but by no means all databases. It is not yet available in DBD::CSV. See SQL::Parser for a list of the SQL syntax supported by DBD::CSV.
If those tips don't solve your problem, let me know (I'm the maintainer of DBD:CSV and SQL::Statement).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with DBD::CSV
by jey (Pilgrim) on Apr 30, 2004 at 22:33 UTC | |
by jZed (Prior) on Apr 30, 2004 at 23:12 UTC |