| Subject | Re: [ib-support] Working with arrays | 
|---|---|
| Author | Jaume Andreu Sabater Malondra | 
| Post date | 2002-09-10T22:54:08Z | 
On Monday 09 September 2002 14:48, Dimitry Sibiryakov wrote: 
can't guess why. :-(
I just had to remove the CAST code (FIELD_B is integer, but it was returning
an error when adding the CAST code, and it's working fine without it).
Thanks a lot, Dimitry! ;-)
--
Jaume Andreu Sabater Malondra
jsabater@...
Registered linux user #209072
"Ubi sapientas ibi libertas"
            > Constructing DSQL statement on the client side (as a matter of factHmmm.. as you said, this doesn't work inside a stored procedure, althought I
> you can't use DSQL anywhere else), you can use NOT IN (<list of
> values>).
can't guess why. :-(
> If you really have to do this inside of stored proc, try this:This worked absolutely fine, Dimitry :-)
>
> DELETE FROM TABLE
> WHERE (FIELD_A = :P_PARAM)
> AND (','||P_LIST||',' NOT LIKE '%,'||CAST(FIELD_B AS VarChar)||',%');
I just had to remove the CAST code (FIELD_B is integer, but it was returning
an error when adding the CAST code, and it's working fine without it).
Thanks a lot, Dimitry! ;-)
--
Jaume Andreu Sabater Malondra
jsabater@...
Registered linux user #209072
"Ubi sapientas ibi libertas"