Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic IN Clause

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-06 : 23:41:10
Charles Sirait writes "I've seen lots of good "dynamic" stuff, but haven't seen a dynamic query to handle the IN Clause such:

SELECT ...
WHERE Col1 IN (@t)

@t is the list of values; '1,2' etc.

Could somebody help me how to solve this?

Regards,
Charles Sirait"
   

- Advertisement -