in reply to Re^5: Combine data in table
in thread Combine data in table
Fails. If I take the GROUP BY off, everything is OK. Same with the SUM statements.#!/usr/bin/perl use strict; use warnings; use DBI; use Data::Dumper; # Connect to the database, (the directory containing our csv file(s)) my $dbh = DBI->connect("DBI:CSV:f_dir=.;csv_eol=\n;"); # Associate our csv file with the table name 'results' $dbh->{'csv_tables'}->{'results'} = { 'file' => "psinfooutputdiskfile. +csv"}; my @rows = $dbh->selectall_arrayref("SELECT IP FROM results GROUP BY I +P"); print Dumper @rows;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Combine data in table
by davidrw (Prior) on Aug 07, 2005 at 20:19 UTC | |
by CountZero (Bishop) on Aug 07, 2005 at 20:30 UTC | |
by jZed (Prior) on Aug 08, 2005 at 02:52 UTC |