|
An Introduction to Class::DBI - Comparing DBI and Class::DBI
|
14
|
|
|
SQL tasks and their Class::DBI equivalents
Finding A Record (by any field)
SQL
SELECT * FROM Nomination
WHERE type = 'Best Editing'
Class::DBI
@films = Film->search(type => 'Best Editing');
my $film = grep { $_->year == 1977 } @films;
...A brief interlude...
|
|