in reply to Can i use condition on Class::DBI

In the Class::DBI POD, under "DEFINING SQL STATEMENTS", there's a section about Class::DBI::AbstractSearch .. the example given is:
my @music = Music::CD->search_where( artist => [ 'Ozzy', 'Kelly' ], status => { '!=', 'outdated' }, );
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)

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
    Yes read this, but I wouldn't like to use Class::DBI::AbstractSearch, because this solution are using to much layer to access dabatase on my opinion.

    Thanks for your help anyway.

    Solli Moreira Honorio
    Sao Paulo - Brazil