Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I'm returning a string say STR1 from a table in a stored procedure
@STR1='AFG','ALB','IND'
when I query another table with IN clause. SQL looks like
SELECT * FROM DATA where IND0 in (@STR1)
It doesn't return anything. It works when the STR1 is just 'AFG'.
Is it a limitation?. or do I have to do differently.
Thanks
Sathya
I'm returning a string say STR1 from a table in a stored procedure
@STR1='AFG','ALB','IND'
when I query another table with IN clause. SQL looks like
SELECT * FROM DATA where IND0 in (@STR1)
It doesn't return anything. It works when the STR1 is just 'AFG'.
Is it a limitation?. or do I have to do differently.
Thanks
Sathya