Subject | Re: IN() and the variable types |
---|---|
Author | Svein Erling Tysvær |
Post date | 2005-02-07T08:38:44Z |
> Unfortunately you can't pass a set of fields into a storedor, he could simply insert the values into a separate table and then
> procedure. You could pass it in as a varchar, and parse the strings.
do a JOIN to this table.
Set
> > Hi all !
> > Using Firebird 1.5.
> > I need to put some values in variable, for later use with IN()
> > operator in a stored procedure.
> >
> > .....
> > declare variable ParentIds varchar(1024)
> > .....
> >
> > ParentIds='1,2,3,4';
> >
> > select ... where "Id" IN(:ParentIds)
> >
> > This return error 'Incompatible column/host variable data type.'
> > Any idea how to resolve this ?
> >
> > if the value in variable is single - ParentIds='2' - there is no
> > problem.
> >
> > Thanks!