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.
Author |
Topic |
infodemers
Posting Yak Master
183 Posts |
Posted - 2011-05-05 : 22:16:50
|
Hi,How could I do something as follow:if @company = '-All-' Begin Set @company = '44,48' EndSelect * from Mytable where company in(@company) |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
infodemers
Posting Yak Master
183 Posts |
Posted - 2011-05-06 : 07:56:33
|
Thanks a lot khtan for the links! :-) |
|
|
|
|
|