in reply to Can i use condition on Class::DBI
That would do the search based on sql that looked like artist IN ('Ozzy', 'Kelly') AND status != 'outdated' (note that exact sql depends on config; e.g. it could be OR instead of AND if desired)my @music = Music::CD->search_where( artist => [ 'Ozzy', 'Kelly' ], status => { '!=', 'outdated' }, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can i use condition on Class::DBI
by shonorio (Hermit) on Aug 30, 2005 at 17:17 UTC |