in reply to Process and combine two CSV files into one
The JOIN may be natural, inner, outer, left, right, or full. You can use table and column aliases, supply a WHERE clause, etc. This creates the new CSV file from the data result set you specify in the SELECT clause. You don't need to put the results into an array or hash or any other structure, just go from CSV file to CSV file using SQL.$dbh->do(" CREATE TABLE new_csv_file AS SELECT (columns) FROM old_csv_file1 JOIN old_csv_file2 ");
update : Make sure you have the latest version of SQL::Statement, DBD::CSV's SQL engine, the syntax is supported in SQL::Statement version 1.14 and later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Process and combine two CSV files into one
by DrAxeman (Scribe) on Aug 10, 2005 at 00:17 UTC | |
|
Re^2: Process and combine two CSV files into one
by DrAxeman (Scribe) on Aug 10, 2005 at 00:38 UTC | |
by jZed (Prior) on Aug 10, 2005 at 00:45 UTC |