in reply to Set-Theoretical Database Interface
I really recommend that you write to dbi-dev@perl.org to get ideas from Tim and other DBI/DBD authors.# create a table # $table = adTie( 'CSV','my_db.csv','o', {col_names=>'name,country,sex'} ); # insert a row # $table->{Sue} = {country=>'de',sex=>'f'}; # delete a single row # delete $table->{Tom}; # select a single value # $str = $table->{Sue}->{country}; # loop through table # while ( my $row = each %$table ) { print $row->{name} if $row->{sex} eq 'f'; } # select multiple rows # $rows = $table->{{age=>'> 25'}} # update multiple rows # $table->{{country=>'Nz'}}={country=>'nz'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Set-Theoretical Database Interface
by awwaiid (Friar) on Feb 19, 2004 at 18:09 UTC |