in reply to Class::DBI not intuitive
my $year = $cd->year; Get a column (a field) from an object. Note that this is called as an instance method, on the particular object retrieved above.
search and search_like are different in that search_like uses the SQL LIKE operator, which allows wildcards. They differ from retrieve in that retrieve only selects based on the primary key, whereas search can use any column or columns. And I think the difference between retrieve and retrieve_all should be obvious just by looking at the name.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class::DBI not intuitive
by pg (Canon) on Jul 27, 2004 at 05:08 UTC | |
by ryantate (Friar) on Jul 27, 2004 at 21:18 UTC | |
by drago99 (Sexton) on Jul 28, 2004 at 04:23 UTC |