artist has asked for the wisdom of the Perl Monks concerning the following question:
Thanks,use DBI; use strict; my $dbh = DBI->connect('dbi:AnyData(RaiseError=>0):'); $dbh->func( 't_pricedata', 'Pipe', 'pricedata', { col_names => 'item,p +rice' }, 'ad_catalog' ); my $query = q(SELECT item,price FROM t_pricedata); my $sth = $dbh->prepare($query); $sth->execute(); while ( my $row = $sth->fetchrow_hashref ) { print $row->{price}, "\n"; } $sth->finish; $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Suppress the Bug
by Limbic~Region (Chancellor) on Jun 08, 2006 at 16:33 UTC | |
|
Re: Suppress the Bug
by Tanktalus (Canon) on Jun 08, 2006 at 16:35 UTC | |
|
Re: Suppress the Bug
by ciderpunx (Vicar) on Jun 08, 2006 at 16:37 UTC | |
by davidrw (Prior) on Jun 08, 2006 at 17:35 UTC |