Subject | Re: [firebird-support] SP Parameter as sql statement ? |
---|---|
Author | Ivan Prenosil |
Post date | 2005-04-21T15:48:26Z |
> I have a need to pass an additional Where statement element on the flyYou can use something like
> into a stored procedure, this wherestatement1 parameter will need to
> contain p.area in ('AAA','BBB','CCC') ;
WHERE ',' || 'AAA,BBB,CCC' || ',' LIKE '%,' || p.area || ',%'
or similar using CONTAINING if you want case insensitivity.
Ivan
http://www.volny.cz/iprenosil/interbase/